auto commit all patches
This commit is contained in:
parent
4fd06bc159
commit
369c252a68
|
@ -17,12 +17,21 @@ func doCommit() {
|
||||||
doCheckDirtyAndConfigSave()
|
doCheckDirtyAndConfigSave()
|
||||||
found := findDirty()
|
found := findDirty()
|
||||||
all := found.All()
|
all := found.All()
|
||||||
|
var newpatches bool
|
||||||
for all.Scan() {
|
for all.Scan() {
|
||||||
repo := all.Next()
|
repo := all.Next()
|
||||||
log.Info("do a commit on repo", repo.GetGoPath())
|
log.Info("do a commit on repo", repo.GetGoPath())
|
||||||
if err := doCommitRepo(repo); err != nil {
|
if err := doCommitRepo(repo); err != nil {
|
||||||
badExit(err)
|
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("")
|
okExit("")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue