From 369c252a68c7a8b68cc314751afd4f71f7d1f30e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 12 Mar 2025 07:58:15 -0500 Subject: [PATCH] auto commit all patches --- doCommit.go | 9 +++++++++ 1 file changed, 9 insertions(+) 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("") }