no longer merge to master

This commit is contained in:
Jeff Carr 2025-01-07 03:23:47 -06:00
parent 439067b9ac
commit 209c270add
1 changed files with 8 additions and 4 deletions

12
main.go
View File

@ -29,15 +29,19 @@ func main() {
me.forge = forgepb.Init() me.forge = forgepb.Init()
me.found = new(gitpb.Repos) me.found = new(gitpb.Repos)
var bad bool = false
all := me.forge.Repos.SortByFullPath() all := me.forge.Repos.SortByFullPath()
for all.Scan() { for all.Scan() {
repo := all.Next() repo := all.Next()
if repo.IsMasterBranch() { if repo.IsDevelBranch() {
continue continue
} }
log.Info("not on master branch:", repo.GetCurrentBranchName(), repo.GetMasterBranchName()) log.Info("not on devel branch:", repo.GetCurrentBranchName(), repo.GetDevelBranchName())
log.Info("not on master branch:", repo.GetFullPath()) log.Info("not on devel branch:", repo.GetFullPath())
log.Info("you can not continue if repos are not on master branches") log.Info("you can not continue if repos are not on devel branches")
bad = true
}
if bad {
os.Exit(-1) os.Exit(-1)
} }