summaryrefslogtreecommitdiff
path: root/doCommit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-12 07:58:15 -0500
committerJeff Carr <[email protected]>2025-03-12 07:58:15 -0500
commit369c252a68c7a8b68cc314751afd4f71f7d1f30e (patch)
treeedeb6b83545065ae5ce297c94ee81fa6b046c932 /doCommit.go
parent4fd06bc1592abf1311de7bba631d857cc2bd1178 (diff)
auto commit all patches
Diffstat (limited to 'doCommit.go')
-rw-r--r--doCommit.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/doCommit.go b/doCommit.go
index b7f6fde..461af47 100644
--- a/doCommit.go
+++ b/doCommit.go
@@ -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("")
}