@snapcommit/cli 3.9.14 → 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) {
|
|
@@ -1034,10 +1046,16 @@ async function executeGitHubCommand(intent) {
|
|
|
1034
1046
|
case 'pr_merge_auto':
|
|
1035
1047
|
case 'auto_merge':
|
|
1036
1048
|
case 'enable_auto_merge':
|
|
1037
|
-
|
|
1049
|
+
case 'pr_auto_merge_enable':
|
|
1050
|
+
case 'auto_merge_enable':
|
|
1051
|
+
let autoMergePrNum = intent.target || intent.options?.number;
|
|
1052
|
+
// Smart PR detection: "auto merge this PR"
|
|
1038
1053
|
if (!autoMergePrNum) {
|
|
1039
|
-
|
|
1040
|
-
|
|
1054
|
+
autoMergePrNum = await github.findPRNumber('current');
|
|
1055
|
+
if (!autoMergePrNum) {
|
|
1056
|
+
console.log(chalk_1.default.red('\n❌ No PR found for current branch\n'));
|
|
1057
|
+
return;
|
|
1058
|
+
}
|
|
1041
1059
|
}
|
|
1042
1060
|
const mergeMethod = intent.options?.method || 'MERGE';
|
|
1043
1061
|
console.log(chalk_1.default.blue(`\n🔄 Enabling auto-merge for PR #${autoMergePrNum}...`));
|
|
@@ -1070,6 +1088,8 @@ async function executeGitHubCommand(intent) {
|
|
|
1070
1088
|
}
|
|
1071
1089
|
break;
|
|
1072
1090
|
case 'pr_stack_create':
|
|
1091
|
+
case 'create_stacked_prs':
|
|
1092
|
+
case 'create_stack':
|
|
1073
1093
|
const branches = intent.options?.branches || [];
|
|
1074
1094
|
if (branches.length < 2) {
|
|
1075
1095
|
console.log(chalk_1.default.red('\n❌ Need at least 2 branches for stacked PRs\n'));
|
|
@@ -1104,10 +1124,16 @@ async function executeGitHubCommand(intent) {
|
|
|
1104
1124
|
console.log(chalk_1.default.gray('💡 Merge from bottom to top for best results!\n'));
|
|
1105
1125
|
break;
|
|
1106
1126
|
case 'pr_mark_ready':
|
|
1107
|
-
|
|
1127
|
+
case 'mark_ready':
|
|
1128
|
+
case 'ready_for_review':
|
|
1129
|
+
let readyPrNum = intent.target || intent.options?.number;
|
|
1130
|
+
// Smart PR detection
|
|
1108
1131
|
if (!readyPrNum) {
|
|
1109
|
-
|
|
1110
|
-
|
|
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
|
+
}
|
|
1111
1137
|
}
|
|
1112
1138
|
console.log(chalk_1.default.blue(`\n🔄 Marking PR #${readyPrNum} as ready for review...`));
|
|
1113
1139
|
await github.markPRReady(readyPrNum);
|
|
@@ -1195,6 +1221,8 @@ async function executeGitHubCommand(intent) {
|
|
|
1195
1221
|
}
|
|
1196
1222
|
break;
|
|
1197
1223
|
case 'merge_queue_remove':
|
|
1224
|
+
case 'remove_from_queue':
|
|
1225
|
+
case 'disable_auto_merge':
|
|
1198
1226
|
// Disable auto-merge
|
|
1199
1227
|
let removePrNum = intent.target || intent.options?.number;
|
|
1200
1228
|
if (!removePrNum) {
|