@fractary/faber-cli 1.3.8 → 1.3.9
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.
- package/dist/commands/plan/index.js +22 -5
- package/package.json +1 -1
|
@@ -319,11 +319,28 @@ async function planSingleIssue(issue, config, repoClient, anthropicClient, optio
|
|
|
319
319
|
if (outputFormat === 'text') {
|
|
320
320
|
console.log(chalk.gray(` → Updating GitHub issue...`));
|
|
321
321
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
322
|
+
try {
|
|
323
|
+
await repoClient.updateIssue({
|
|
324
|
+
id: issue.number.toString(),
|
|
325
|
+
comment: `🤖 Workflow plan created: ${planId}`,
|
|
326
|
+
addLabel: 'faber:planned',
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
catch (error) {
|
|
330
|
+
// If label doesn't exist, just add comment without label
|
|
331
|
+
if (error instanceof Error && error.message.includes('not found')) {
|
|
332
|
+
if (outputFormat === 'text') {
|
|
333
|
+
console.log(chalk.yellow(` ⚠️ Label 'faber:planned' not found, adding comment only`));
|
|
334
|
+
}
|
|
335
|
+
await repoClient.updateIssue({
|
|
336
|
+
id: issue.number.toString(),
|
|
337
|
+
comment: `🤖 Workflow plan created: ${planId}`,
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
throw error;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
327
344
|
if (outputFormat === 'text') {
|
|
328
345
|
console.log(chalk.green(` ✓ Plan: ${planId}`));
|
|
329
346
|
}
|