deprecated button

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-14 16:16:11 -06:00
parent 89583a2db4
commit b8b65a9c0e
2 changed files with 20 additions and 2 deletions

18
main.go
View File

@ -83,6 +83,24 @@ func main() {
createReleaseBox(me.mainBox) createReleaseBox(me.mainBox)
// createUnreleaseBox(me.mainBox) // createUnreleaseBox(me.mainBox)
for _, repo := range me.allrepos {
if repo.status.ReadOnly() {
continue
}
if whitelist(repo.String()) {
continue
}
if repo.status.CheckoutMaster() {
log.Warn("set master branch worked", repo.String())
repo.newScan()
} else {
repo.newScan()
log.Warn("set master branch failed", repo.String())
log.Warn("set master branch failed", repo.String())
log.Warn("set master branch failed", repo.String())
}
}
showHideRepos() showHideRepos()
release.openrepo.Disable() release.openrepo.Disable()

View File

@ -27,7 +27,7 @@ type releaseStruct struct {
// versionS string // versionS string
// widgetVersionS string // widgetVersionS string
releaseVersionB *gui.Node releaseVersionB *gui.Node
unreleaseB *gui.Node // unreleaseB *gui.Node
reason *gadgets.BasicEntry reason *gadgets.BasicEntry
// reasonS string // reasonS string
@ -300,7 +300,7 @@ func setCurrentRepo(newcur *repo, s string, note string) bool {
release.current = newcur release.current = newcur
release.version.SetText(release.current.targetVersion.String()) release.version.SetText(release.current.targetVersion.String())
release.releaseVersionB.SetText("release version " + release.current.targetVersion.String()) release.releaseVersionB.SetText("release version " + release.current.targetVersion.String())
release.unreleaseB.SetText("un-release version " + release.current.targetVersion.String()) // release.unreleaseB.SetText("un-release version " + release.current.targetVersion.String())
release.openrepo.Enable() release.openrepo.Enable()
return true return true