auto commit all patches

This commit is contained in:
Jeff Carr 2025-03-12 07:58:15 -05:00
parent 4fd06bc159
commit 369c252a68
1 changed files with 9 additions and 0 deletions

View File

@ -17,12 +17,21 @@ func doCommit() {
doCheckDirtyAndConfigSave()
found := findDirty()
all := found.All()
var newpatches bool
for all.Scan() {
repo := all.Next()
log.Info("do a commit on repo", repo.GetGoPath())
if err := doCommitRepo(repo); err != nil {
badExit(err)
}
newpatches = true
}
if newpatches {
// if there are enw patches, autocommit them
_, err := me.forge.SubmitDevelPatchSet("forge auto commit")
if err != nil {
badExit(err)
}
}
okExit("")
}