start Increment all tags

This commit is contained in:
Jeff Carr 2024-02-23 01:22:46 -06:00
parent f68e76b914
commit 3c1d032101
1 changed files with 27 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func globalDisplayOptions(box *gui.Node) {
hidegrid.NextRow()
group1 = vbox.NewGroup("prep for release")
grid := group1.NewGrid("test", 0, 0)
grid := group1.RawGrid()
var longB *gui.Node
longB = grid.NewButton("generate go.sum files", func() {
@ -120,6 +120,32 @@ func globalDisplayOptions(box *gui.Node) {
}
})
grid.NewButton("increment tags", func() {
for _, repo := range me.repos.View.AllRepos() {
if whitelist(repo.GoPath()) {
continue
}
if repo.ReadOnly() {
continue
}
lasttag := repo.LastTag()
masterv := repo.Status.GetMasterVersion()
targetv := repo.Status.GetTargetVersion()
if lasttag == masterv {
// nothing to do if curv == masterv
// unless go.sum depends on changed repos
continue
}
if masterv != targetv {
log.Info(repo.GoPath(), "master and target differ already", masterv, targetv)
// already incremented
continue
}
repo.Status.IncrementVersion()
}
})
grid.NextRow()
group2 := vbox.NewGroup("Debugger")