@kody-ade/kody-engine-lite 0.1.111 → 0.1.112
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/bin/cli.js +8 -2
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -1447,8 +1447,14 @@ async function handleTasks(parsed, ticketId, issueNumber, local) {
|
|
|
1447
1447
|
filed.push({ number: 0, url: "#", title: task.title });
|
|
1448
1448
|
continue;
|
|
1449
1449
|
}
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1450
|
+
const safeLabels = [
|
|
1451
|
+
...(task.labels ?? []).filter((l) => l.startsWith("priority:") || l.startsWith("kody:")),
|
|
1452
|
+
...task.priority ? [`priority:${task.priority}`] : []
|
|
1453
|
+
];
|
|
1454
|
+
let issue = createIssue(task.title, task.body, safeLabels);
|
|
1455
|
+
if (!issue && safeLabels.length > 0) {
|
|
1456
|
+
issue = createIssue(task.title, task.body, []);
|
|
1457
|
+
}
|
|
1452
1458
|
if (issue) {
|
|
1453
1459
|
filed.push({ number: issue.number, url: issue.url, title: task.title });
|
|
1454
1460
|
} else {
|