Skip to content

Commit d71817b

Browse files
Tobias MeinhardtTobias Meinhardt
authored andcommitted
fix: set the default branch names for main and dev branches
1 parent 34c9639 commit d71817b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ glow release 1.2.3
7272

7373
### Publish a release
7474

75-
When you decide that the release is stable and you want to publish it, the following command will create a merge request on the main branch in Gitlab. You can configure the main branch name in the `glow.config.json`.
75+
When you decide that the release is stable and you want to publish it, the following command will create a merge request on the main branch in Gitlab. You can configure the main branch name in the `glow.config.json`. Default is `master`.
7676

7777
```bash
7878
glow publish
@@ -112,7 +112,7 @@ _glow.config.json_
112112
"versionFile": "VERSION",
113113
"versionFileType": "raw",
114114
"logLevel": "info",
115-
"mainBranch": "main",
115+
"mainBranch": "master",
116116
"devBranch": "develop"
117117
}
118118
```

pkg/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ func InitGlobalConfig() {
2828
viper.SetDefault("versionFile", "VERSION")
2929
viper.SetDefault("logLevel", "info")
3030
viper.SetDefault("versionFileType", "raw")
31+
viper.SetDefault("mainBranch", "master")
32+
viper.SetDefault("devBranch", "develop")
3133

3234
viper.SetConfigName("glow.config")
3335
viper.AddConfigPath(rootRepoPath)

0 commit comments

Comments
 (0)