diff --git a/prepareRelease.go b/prepareRelease.go index f748485..bec6add 100644 --- a/prepareRelease.go +++ b/prepareRelease.go @@ -222,6 +222,13 @@ func rePrepareRelease() { } me.forge.PrintHumanTable(me.found) + // todo: verify each found repo is on the master branch + for repo := range me.found.IterAll() { + if repo.CurrentBranchName != repo.MasterBranchName { + log.Info("repo not on master branch", repo.FullPath) + os.Exit(-1) + } + } } func printDone() {