@snapcommit/cli 3.9.14 → 3.9.15

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.
@@ -1034,10 +1034,16 @@ async function executeGitHubCommand(intent) {
1034
1034
  case 'pr_merge_auto':
1035
1035
  case 'auto_merge':
1036
1036
  case 'enable_auto_merge':
1037
- const autoMergePrNum = intent.target || intent.options?.number;
1037
+ case 'pr_auto_merge_enable':
1038
+ case 'auto_merge_enable':
1039
+ let autoMergePrNum = intent.target || intent.options?.number;
1040
+ // Smart PR detection: "auto merge this PR"
1038
1041
  if (!autoMergePrNum) {
1039
- console.log(chalk_1.default.red('\n❌ PR number required\n'));
1040
- return;
1042
+ autoMergePrNum = await github.findPRNumber('current');
1043
+ if (!autoMergePrNum) {
1044
+ console.log(chalk_1.default.red('\n❌ No PR found for current branch\n'));
1045
+ return;
1046
+ }
1041
1047
  }
1042
1048
  const mergeMethod = intent.options?.method || 'MERGE';
1043
1049
  console.log(chalk_1.default.blue(`\n🔄 Enabling auto-merge for PR #${autoMergePrNum}...`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapcommit/cli",
3
- "version": "3.9.14",
3
+ "version": "3.9.15",
4
4
  "description": "Instant AI commits. Beautiful progress tracking. Never write commit messages again.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {