@snapcommit/cli 3.9.13 ā 3.9.14
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.
|
@@ -767,6 +767,8 @@ async function executeGitHubCommand(intent) {
|
|
|
767
767
|
try {
|
|
768
768
|
switch (intent.action) {
|
|
769
769
|
case 'pr_create':
|
|
770
|
+
case 'create_pr':
|
|
771
|
+
case 'new_pr':
|
|
770
772
|
const isDraft = intent.options?.draft || false;
|
|
771
773
|
console.log(chalk_1.default.blue(`\nš Creating ${isDraft ? 'draft ' : ''}PR...`));
|
|
772
774
|
const pr = await github.createPullRequest(intent.options || {});
|
|
@@ -829,12 +831,16 @@ async function executeGitHubCommand(intent) {
|
|
|
829
831
|
}
|
|
830
832
|
break;
|
|
831
833
|
case 'issue_create':
|
|
834
|
+
case 'create_issue':
|
|
835
|
+
case 'new_issue':
|
|
832
836
|
console.log(chalk_1.default.blue('\nš Creating issue...'));
|
|
833
837
|
const issue = await github.createIssue(intent.options || {});
|
|
834
838
|
console.log(chalk_1.default.green(`ā Issue #${issue.number} created`));
|
|
835
839
|
console.log(chalk_1.default.cyan(` ${issue.html_url}\n`));
|
|
836
840
|
break;
|
|
837
841
|
case 'issue_list':
|
|
842
|
+
case 'list_issues':
|
|
843
|
+
case 'show_issues':
|
|
838
844
|
const issues = await github.listIssues({ state: 'open', limit: 10 });
|
|
839
845
|
if (issues.length === 0) {
|
|
840
846
|
console.log(chalk_1.default.gray('\nā No open issues\n'));
|
|
@@ -848,6 +854,7 @@ async function executeGitHubCommand(intent) {
|
|
|
848
854
|
}
|
|
849
855
|
break;
|
|
850
856
|
case 'issue_close':
|
|
857
|
+
case 'close_issue':
|
|
851
858
|
const closeIssueNum = intent.target || intent.options?.number;
|
|
852
859
|
if (!closeIssueNum) {
|
|
853
860
|
console.log(chalk_1.default.red('\nā Issue number required\n'));
|
|
@@ -969,6 +976,9 @@ async function executeGitHubCommand(intent) {
|
|
|
969
976
|
}
|
|
970
977
|
break;
|
|
971
978
|
case 'pr_diff':
|
|
979
|
+
case 'pr_changes':
|
|
980
|
+
case 'show_pr_diff':
|
|
981
|
+
case 'what_changed':
|
|
972
982
|
let diffPrNum = intent.target || intent.options?.number;
|
|
973
983
|
// Smart PR detection: "what changed in my PR"
|
|
974
984
|
if (!diffPrNum) {
|
|
@@ -1035,6 +1045,9 @@ async function executeGitHubCommand(intent) {
|
|
|
1035
1045
|
console.log(chalk_1.default.green(`ā Auto-merge enabled (will merge when CI passes)\n`));
|
|
1036
1046
|
break;
|
|
1037
1047
|
case 'pr_stack_show':
|
|
1048
|
+
case 'show_pr_stack':
|
|
1049
|
+
case 'show_stack':
|
|
1050
|
+
case 'stack_status':
|
|
1038
1051
|
console.log(chalk_1.default.blue('\nš Loading PR stack...\n'));
|
|
1039
1052
|
const stack = await github.getPRStack(intent.options?.base || 'main');
|
|
1040
1053
|
if (stack.length === 0) {
|
|
@@ -1138,6 +1151,8 @@ async function executeGitHubCommand(intent) {
|
|
|
1138
1151
|
}
|
|
1139
1152
|
break;
|
|
1140
1153
|
case 'merge_queue_status':
|
|
1154
|
+
case 'check_merge_queue':
|
|
1155
|
+
case 'queue_status':
|
|
1141
1156
|
// Show auto-merge status for current PR
|
|
1142
1157
|
let statusPrNum = intent.target || intent.options?.number;
|
|
1143
1158
|
if (!statusPrNum) {
|