everything must be on the master branch to publish

This commit is contained in:
Jeff Carr 2025-09-10 17:30:33 -05:00
parent c0d131a659
commit 131d6b4178
1 changed files with 7 additions and 0 deletions

View File

@ -222,6 +222,13 @@ func rePrepareRelease() {
} }
me.forge.PrintHumanTable(me.found) 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() { func printDone() {