diff options
| author | Jeff Carr <[email protected]> | 2025-01-07 03:23:47 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-07 03:23:47 -0600 |
| commit | 209c270add8b3877cc0eb3e8facc274f8e20f492 (patch) | |
| tree | 5ebec82c01bde516a4ffadfa375b6abba847352d /main.go | |
| parent | 439067b9ac77d820a76ec98be1caaac6c433efba (diff) | |
no longer merge to master
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -29,15 +29,19 @@ func main() { me.forge = forgepb.Init() me.found = new(gitpb.Repos) + var bad bool = false all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() - if repo.IsMasterBranch() { + if repo.IsDevelBranch() { continue } - log.Info("not on master branch:", repo.GetCurrentBranchName(), repo.GetMasterBranchName()) - log.Info("not on master branch:", repo.GetFullPath()) - log.Info("you can not continue if repos are not on master branches") + log.Info("not on devel branch:", repo.GetCurrentBranchName(), repo.GetDevelBranchName()) + log.Info("not on devel branch:", repo.GetFullPath()) + log.Info("you can not continue if repos are not on devel branches") + bad = true + } + if bad { os.Exit(-1) } |
