@snapcommit/cli 3.9.15 → 3.9.16
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.
|
@@ -865,6 +865,7 @@ async function executeGitHubCommand(intent) {
|
|
|
865
865
|
console.log(chalk_1.default.green(`✓ Issue #${closeIssueNum} closed\n`));
|
|
866
866
|
break;
|
|
867
867
|
case 'issue_reopen':
|
|
868
|
+
case 'reopen_issue':
|
|
868
869
|
const reopenIssueNum = intent.target || intent.options?.number;
|
|
869
870
|
if (!reopenIssueNum) {
|
|
870
871
|
console.log(chalk_1.default.red('\n❌ Issue number required\n'));
|
|
@@ -928,6 +929,8 @@ async function executeGitHubCommand(intent) {
|
|
|
928
929
|
console.log(chalk_1.default.green(`✓ Comment added\n`));
|
|
929
930
|
break;
|
|
930
931
|
case 'issue_comment':
|
|
932
|
+
case 'comment_issue':
|
|
933
|
+
case 'add_issue_comment':
|
|
931
934
|
const commentIssueNum = intent.target || intent.options?.number;
|
|
932
935
|
if (!commentIssueNum) {
|
|
933
936
|
console.log(chalk_1.default.red('\n❌ Issue number required\n'));
|
|
@@ -1006,6 +1009,9 @@ async function executeGitHubCommand(intent) {
|
|
|
1006
1009
|
console.log();
|
|
1007
1010
|
break;
|
|
1008
1011
|
case 'workflow_rerun':
|
|
1012
|
+
case 'rerun_workflow':
|
|
1013
|
+
case 'retry_ci':
|
|
1014
|
+
case 'rerun_ci':
|
|
1009
1015
|
const runId = intent.target || intent.options?.runId;
|
|
1010
1016
|
if (!runId) {
|
|
1011
1017
|
console.log(chalk_1.default.red('\n❌ Workflow run ID required\n'));
|
|
@@ -1016,10 +1022,16 @@ async function executeGitHubCommand(intent) {
|
|
|
1016
1022
|
console.log(chalk_1.default.green(`✓ Workflow re-run started\n`));
|
|
1017
1023
|
break;
|
|
1018
1024
|
case 'pr_label':
|
|
1019
|
-
|
|
1025
|
+
case 'label_pr':
|
|
1026
|
+
case 'add_labels':
|
|
1027
|
+
let labelPrNum = intent.target || intent.options?.number;
|
|
1028
|
+
// Smart PR detection
|
|
1020
1029
|
if (!labelPrNum) {
|
|
1021
|
-
|
|
1022
|
-
|
|
1030
|
+
labelPrNum = await github.findPRNumber('current');
|
|
1031
|
+
if (!labelPrNum) {
|
|
1032
|
+
console.log(chalk_1.default.red('\n❌ No PR found for current branch\n'));
|
|
1033
|
+
return;
|
|
1034
|
+
}
|
|
1023
1035
|
}
|
|
1024
1036
|
const labels = intent.options?.labels || [];
|
|
1025
1037
|
if (labels.length === 0) {
|
|
@@ -1076,6 +1088,8 @@ async function executeGitHubCommand(intent) {
|
|
|
1076
1088
|
}
|
|
1077
1089
|
break;
|
|
1078
1090
|
case 'pr_stack_create':
|
|
1091
|
+
case 'create_stacked_prs':
|
|
1092
|
+
case 'create_stack':
|
|
1079
1093
|
const branches = intent.options?.branches || [];
|
|
1080
1094
|
if (branches.length < 2) {
|
|
1081
1095
|
console.log(chalk_1.default.red('\n❌ Need at least 2 branches for stacked PRs\n'));
|
|
@@ -1110,10 +1124,16 @@ async function executeGitHubCommand(intent) {
|
|
|
1110
1124
|
console.log(chalk_1.default.gray('💡 Merge from bottom to top for best results!\n'));
|
|
1111
1125
|
break;
|
|
1112
1126
|
case 'pr_mark_ready':
|
|
1113
|
-
|
|
1127
|
+
case 'mark_ready':
|
|
1128
|
+
case 'ready_for_review':
|
|
1129
|
+
let readyPrNum = intent.target || intent.options?.number;
|
|
1130
|
+
// Smart PR detection
|
|
1114
1131
|
if (!readyPrNum) {
|
|
1115
|
-
|
|
1116
|
-
|
|
1132
|
+
readyPrNum = await github.findPRNumber('current');
|
|
1133
|
+
if (!readyPrNum) {
|
|
1134
|
+
console.log(chalk_1.default.red('\n❌ No PR found for current branch\n'));
|
|
1135
|
+
return;
|
|
1136
|
+
}
|
|
1117
1137
|
}
|
|
1118
1138
|
console.log(chalk_1.default.blue(`\n🔄 Marking PR #${readyPrNum} as ready for review...`));
|
|
1119
1139
|
await github.markPRReady(readyPrNum);
|
|
@@ -1201,6 +1221,8 @@ async function executeGitHubCommand(intent) {
|
|
|
1201
1221
|
}
|
|
1202
1222
|
break;
|
|
1203
1223
|
case 'merge_queue_remove':
|
|
1224
|
+
case 'remove_from_queue':
|
|
1225
|
+
case 'disable_auto_merge':
|
|
1204
1226
|
// Disable auto-merge
|
|
1205
1227
|
let removePrNum = intent.target || intent.options?.number;
|
|
1206
1228
|
if (!removePrNum) {
|