@kody-ade/kody-engine-lite 0.1.85 → 0.1.86
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 +9 -0
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -544,6 +544,14 @@ function getIssue(issueNumber) {
|
|
|
544
544
|
return null;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
+
function closeIssue(issueNumber) {
|
|
548
|
+
try {
|
|
549
|
+
gh(["issue", "close", String(issueNumber)]);
|
|
550
|
+
logger.info(` Issue #${issueNumber} closed`);
|
|
551
|
+
} catch (err) {
|
|
552
|
+
logger.warn(` Failed to close issue #${issueNumber}: ${err}`);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
547
555
|
function getIssueLabels(issueNumber) {
|
|
548
556
|
try {
|
|
549
557
|
const output = gh(["issue", "view", String(issueNumber), "--json", "labels", "--jq", ".labels[].name"]);
|
|
@@ -2499,6 +2507,7 @@ PR #${existingPr.number}
|
|
|
2499
2507
|
postComment(ctx.input.issueNumber, `\u{1F389} PR created: ${pr.url}`);
|
|
2500
2508
|
} catch {
|
|
2501
2509
|
}
|
|
2510
|
+
closeIssue(ctx.input.issueNumber);
|
|
2502
2511
|
}
|
|
2503
2512
|
fs12.writeFileSync(shipPath, `# Ship
|
|
2504
2513
|
|