auto commit all patches
This commit is contained in:
parent
4fd06bc159
commit
369c252a68
|
@ -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("")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue