@fractary/faber-cli 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -260,10 +260,12 @@ async function assignWorkflows(issues, availableWorkflows, options, outputFormat
|
|
|
260
260
|
validateWorkflowName(workflow);
|
|
261
261
|
}
|
|
262
262
|
if (!workflow) {
|
|
263
|
-
// Extract from issue labels
|
|
264
|
-
const workflowLabel = issue.labels.find(label => label.startsWith('workflow:'));
|
|
263
|
+
// Extract from issue labels - support both 'workflow:' and 'faber-workflow:' prefixes
|
|
264
|
+
const workflowLabel = issue.labels.find(label => label.startsWith('workflow:') || label.startsWith('faber-workflow:'));
|
|
265
265
|
if (workflowLabel) {
|
|
266
|
-
workflow = workflowLabel
|
|
266
|
+
workflow = workflowLabel
|
|
267
|
+
.replace(/^workflow:/, '')
|
|
268
|
+
.replace(/^faber-workflow:/, '');
|
|
267
269
|
// Validate extracted workflow name
|
|
268
270
|
validateWorkflowName(workflow);
|
|
269
271
|
}
|
package/dist/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,oBAAoB,CAAC;AAEpE;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAc;IAE5B,OAAO;IAIP;;OAEG;WACU,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,oBAAoB,CAAC;AAEpE;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAc;IAE5B,OAAO;IAIP;;OAEG;WACU,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC;IAoFzC;;;OAGG;mBACkB,cAAc;IAwBnC;;OAEG;mBACkB,8BAA8B;IAoBnD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAyBnC;;OAEG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,WAAW,GAAG,GAAG;CAGjC"}
|
package/dist/lib/config.js
CHANGED
|
@@ -67,9 +67,27 @@ export class ConfigManager {
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
if (!config.workflow?.config_path) {
|
|
70
|
+
// Try new location first, fall back to legacy location for backward compatibility
|
|
71
|
+
const newPath = path.join(process.cwd(), '.fractary', 'faber', 'workflows');
|
|
72
|
+
const legacyPath = path.join(process.cwd(), '.fractary', 'plugins', 'faber', 'workflows');
|
|
73
|
+
let workflowPath = newPath;
|
|
74
|
+
try {
|
|
75
|
+
await fs.access(newPath);
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
// New path doesn't exist, try legacy path
|
|
79
|
+
try {
|
|
80
|
+
await fs.access(legacyPath);
|
|
81
|
+
workflowPath = legacyPath;
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
// Neither exists, use new path as default (will be created if needed)
|
|
85
|
+
workflowPath = newPath;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
70
88
|
config.workflow = {
|
|
71
89
|
...config.workflow,
|
|
72
|
-
config_path:
|
|
90
|
+
config_path: workflowPath,
|
|
73
91
|
};
|
|
74
92
|
}
|
|
75
93
|
return config;
|