spectrum-cli 1.0.6 → 1.0.7

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.
package/index.js CHANGED
@@ -9,7 +9,7 @@ const release = require('./src/release');
9
9
  program
10
10
  .name('spectrum')
11
11
  .description('🚀 Spectrum CLI for development workflow')
12
- .version('1.0.6');
12
+ .version('1.0.7');
13
13
 
14
14
  // Release commands
15
15
  const releaseCmd = program
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spectrum-cli",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "🚀 Modern CLI for development workflow automation - release management, versioning, and changelog generation",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/utils.js CHANGED
@@ -47,7 +47,11 @@ function getCurrentBranch() {
47
47
  }
48
48
 
49
49
  function getMainBranch() {
50
- return execSilent('git symbolic-ref refs/remotes/origin/HEAD | sed "s@^refs/remotes/origin/@@"') || 'main';
50
+ const branches = execSilent('git branch -r');
51
+ if (branches && branches.includes('origin/master')) {
52
+ return 'master';
53
+ }
54
+ return 'main';
51
55
  }
52
56
 
53
57
  function getDevelopBranch() {