@inteeka/task-cli 0.2.27 → 0.2.29
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/cli.js +44 -6
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -211,6 +211,8 @@ var CLI_AUDIT_ACTIONS = Object.freeze([
|
|
|
211
211
|
// by /api/v1/cli/me/tickets/[id]/pull-requests/[prNumber]/auto-review-verdict.
|
|
212
212
|
"git.pr.auto_review_passed",
|
|
213
213
|
"git.pr.auto_review_failed",
|
|
214
|
+
"git.pr.auto_review_sql_held",
|
|
215
|
+
"git.pr.auto_review_sql_hold_dispatched",
|
|
214
216
|
"cli.work.pr_recovered",
|
|
215
217
|
"cli.schedule.created",
|
|
216
218
|
"cli.schedule.paused",
|
|
@@ -2879,12 +2881,48 @@ Claude session: ${runId}
|
|
|
2879
2881
|
`
|
|
2880
2882
|
);
|
|
2881
2883
|
if (verdict.overall === "pass") {
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2884
|
+
switch (verdictResp.status) {
|
|
2885
|
+
case "merged":
|
|
2886
|
+
case "already_merged":
|
|
2887
|
+
process.stdout.write(c.ok(" \u2713 Merged into ") + c.cyan(`${ticketBaseBranch}
|
|
2888
|
+
`));
|
|
2889
|
+
break;
|
|
2890
|
+
case "merging":
|
|
2891
|
+
process.stdout.write(
|
|
2892
|
+
c.dim(" PR approved \u2014 merge in progress on ") + c.cyan(`${ticketBaseBranch}
|
|
2886
2893
|
`)
|
|
2887
|
-
|
|
2894
|
+
);
|
|
2895
|
+
break;
|
|
2896
|
+
case "queued_for_merge":
|
|
2897
|
+
process.stdout.write(
|
|
2898
|
+
c.dim(" PR approved \u2014 queued for merge to ") + c.cyan(`${ticketBaseBranch}
|
|
2899
|
+
`) + c.dim(" GitHub still computing mergeability; the merge cron will retry.\n")
|
|
2900
|
+
);
|
|
2901
|
+
break;
|
|
2902
|
+
case "merge_failed":
|
|
2903
|
+
process.stdout.write(
|
|
2904
|
+
c.warn(" PR approved but merge failed") + c.dim(" \u2014 review on GitHub for the reason (conflicts, blocked, etc.).\n")
|
|
2905
|
+
);
|
|
2906
|
+
break;
|
|
2907
|
+
case "approved_not_queued":
|
|
2908
|
+
process.stdout.write(
|
|
2909
|
+
c.warn(" PR approved but not queued") + c.dim(" \u2014 server reported the merge queue was not unlocked.\n")
|
|
2910
|
+
);
|
|
2911
|
+
break;
|
|
2912
|
+
case "sql_held_for_review": {
|
|
2913
|
+
const count = verdictResp.sql_files_count ?? verdictResp.sql_files?.length ?? 0;
|
|
2914
|
+
process.stdout.write(
|
|
2915
|
+
c.warn(" \u26A0 Held for human review") + c.dim(
|
|
2916
|
+
` \u2014 PR touches ${count} SQL / migration file${count === 1 ? "" : "s"}. Findings posted on the PR.
|
|
2917
|
+
`
|
|
2918
|
+
)
|
|
2919
|
+
);
|
|
2920
|
+
break;
|
|
2921
|
+
}
|
|
2922
|
+
default:
|
|
2923
|
+
process.stdout.write(c.dim(` Verdict recorded. (status=${verdictResp.status})
|
|
2924
|
+
`));
|
|
2925
|
+
}
|
|
2888
2926
|
} else {
|
|
2889
2927
|
process.stdout.write(
|
|
2890
2928
|
c.dim(` ${verdict.findings.length} finding(s) posted as PR comment; PR left open.
|
|
@@ -6299,7 +6337,7 @@ function checkBinary(name, command) {
|
|
|
6299
6337
|
}
|
|
6300
6338
|
|
|
6301
6339
|
// src/commands/version.ts
|
|
6302
|
-
var CLI_VERSION = true ? "0.2.
|
|
6340
|
+
var CLI_VERSION = true ? "0.2.29" : "0.0.0-dev";
|
|
6303
6341
|
function registerVersion(program2) {
|
|
6304
6342
|
program2.command("version").description("Print the CLI version").action(() => {
|
|
6305
6343
|
process.stdout.write(CLI_VERSION + "\n");
|