option to increment only changed repos

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-03-07 21:35:48 -06:00
parent 90ae6d0917
commit 0f48d99b43
1 changed files with 20 additions and 0 deletions

View File

@ -186,6 +186,26 @@ func globalDisplayOptions(box *gui.Node) {
repo.Status.IncrementMinorVersion("trying minor") repo.Status.IncrementMinorVersion("trying minor")
} }
}) })
grid.NewButton("ncrement changed repos", func() {
me.Disable()
for _, repo := range me.repos.View.AllRepos() {
if whitelist(repo.GoPath()) {
continue
}
if repo.ReadOnly() {
continue
}
lasttag := repo.Status.LastTag()
if repo.Status.GetCurrentVersion() == lasttag {
log.Info("skipping unchanged repo", repo.Status.GoPath())
repo.Status.SetTargetVersion(lasttag)
continue
}
repo.Status.IncrementRevisionVersion("go-clone")
}
me.repos.View.ScanRepositories()
me.Enable()
})
grid.NextRow() grid.NextRow()
group2 := vbox.NewGroup("Debugger") group2 := vbox.NewGroup("Debugger")