diff options
| author | Jeff Carr <[email protected]> | 2025-03-12 07:58:15 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-12 07:58:15 -0500 |
| commit | 369c252a68c7a8b68cc314751afd4f71f7d1f30e (patch) | |
| tree | edeb6b83545065ae5ce297c94ee81fa6b046c932 /doCommit.go | |
| parent | 4fd06bc1592abf1311de7bba631d857cc2bd1178 (diff) | |
auto commit all patches
Diffstat (limited to 'doCommit.go')
| -rw-r--r-- | doCommit.go | 9 |
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("") } |
