@snapcommit/cli 3.9.10 → 3.9.12
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.
|
@@ -774,6 +774,8 @@ async function executeGitHubCommand(intent) {
|
|
|
774
774
|
console.log(chalk_1.default.cyan(` ${pr.html_url}\n`));
|
|
775
775
|
break;
|
|
776
776
|
case 'pr_list':
|
|
777
|
+
case 'list_prs':
|
|
778
|
+
case 'show_prs':
|
|
777
779
|
const prs = await github.listPullRequests({ state: 'open', limit: 10 });
|
|
778
780
|
if (prs.length === 0) {
|
|
779
781
|
console.log(chalk_1.default.gray('\n✓ No open PRs\n'));
|
|
@@ -787,6 +789,8 @@ async function executeGitHubCommand(intent) {
|
|
|
787
789
|
}
|
|
788
790
|
break;
|
|
789
791
|
case 'pr_merge':
|
|
792
|
+
case 'merge_pr':
|
|
793
|
+
case 'merge':
|
|
790
794
|
let prNumber = intent.target || intent.options?.number;
|
|
791
795
|
// Smart PR detection: "merge my PR" / "merge this PR"
|
|
792
796
|
if (!prNumber) {
|
|
@@ -801,6 +805,9 @@ async function executeGitHubCommand(intent) {
|
|
|
801
805
|
console.log(chalk_1.default.green(`✓ PR #${prNumber} merged\n`));
|
|
802
806
|
break;
|
|
803
807
|
case 'ci_check':
|
|
808
|
+
case 'ci_status':
|
|
809
|
+
case 'check_ci':
|
|
810
|
+
case 'status_check':
|
|
804
811
|
console.log(chalk_1.default.blue('\n🔍 Checking CI status...'));
|
|
805
812
|
try {
|
|
806
813
|
const ciStatus = await github.getCommitStatus();
|
|
@@ -861,6 +868,9 @@ async function executeGitHubCommand(intent) {
|
|
|
861
868
|
console.log(chalk_1.default.green(`✓ Issue #${reopenIssueNum} reopened\n`));
|
|
862
869
|
break;
|
|
863
870
|
case 'pr_review':
|
|
871
|
+
case 'review_pr':
|
|
872
|
+
case 'approve':
|
|
873
|
+
case 'approve_pr':
|
|
864
874
|
let reviewPrNum = intent.target || intent.options?.number;
|
|
865
875
|
// Smart PR detection: "approve this PR" / "approve my PR"
|
|
866
876
|
if (!reviewPrNum) {
|
|
@@ -890,6 +900,8 @@ async function executeGitHubCommand(intent) {
|
|
|
890
900
|
}
|
|
891
901
|
break;
|
|
892
902
|
case 'pr_comment':
|
|
903
|
+
case 'comment_pr':
|
|
904
|
+
case 'add_comment':
|
|
893
905
|
let commentPrNum = intent.target || intent.options?.number;
|
|
894
906
|
// Smart PR detection
|
|
895
907
|
if (!commentPrNum) {
|
|
@@ -925,6 +937,8 @@ async function executeGitHubCommand(intent) {
|
|
|
925
937
|
break;
|
|
926
938
|
case 'pr_show':
|
|
927
939
|
case 'pr_status':
|
|
940
|
+
case 'pr_view':
|
|
941
|
+
case 'pr_details':
|
|
928
942
|
let showPrNum = intent.target || intent.options?.number;
|
|
929
943
|
// Smart PR detection: "show my PR" / "show this PR"
|
|
930
944
|
if (!showPrNum) {
|