kind of work, but still manual process

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-01 13:51:17 -06:00
parent 41a6166890
commit a0cd9ee4a1
3 changed files with 26 additions and 8 deletions

View File

@ -75,21 +75,24 @@ func globalDisplayOptions(box *gui.Node) {
me.scanEveryMinute = group1.NewCheckbox("Scan every minute").SetChecked(false)
group1.NewButton("set all branches to master", func() {
me.setBranchesToMasterB = group1.NewButton("set all branches to master", func() {
me.Disable()
for _, repo := range me.allrepos {
if whitelist(repo.String()) {
continue
}
if repo.status.CheckoutMaster() {
log.Warn("set master branch worked", repo.String)
log.Warn("set master branch worked", repo.String())
repo.newScan()
} else {
log.Warn("set master branch failed", repo.String)
log.Warn("set master branch failed", repo.String())
repo.newScan()
me.Enable()
return
}
}
me.Enable()
me.setBranchesToMasterB.Disable()
})
var longB *gui.Node

View File

@ -95,8 +95,13 @@ func createReleaseBox(box *gui.Node) {
log.Warn("version does not start with v.", release.version.String())
return
}
if release.status.String() != "PRIMATIVE" {
log.Warn("only can do PRIMATIVE right now", release.version.String())
switch release.status.String() {
case "PRIMATIVE":
log.Warn("can do PRIMATIVE", release.version.String())
case "manually chosen":
log.Warn("attempting manual release", release.version.String())
default:
log.Warn("what is this?", release.version.String(), release.status.String())
return
}
@ -408,6 +413,12 @@ func findNextDirty() bool {
if goSumS == "IGNORE" {
continue
}
if goSumS == "NOT READY" {
if setCurrentRepo(repo, "NOT READY", "manually check go.sum") {
return true
}
continue
}
if goSumS == "DIRTY 2" {
continue
}

View File

@ -58,16 +58,20 @@ type autoType struct {
// The current working directory
autoWorkingPwd *gadgets.OneLiner
// what is being used as your home dir
// shows what is being used as your home dir
userHomePwd *gadgets.OneLiner
// what is being used as ~/go/src
// shows what directory being used as ~/go/src
goSrcPwd *gadgets.OneLiner
// button to download everything
downloadEverythingButton *gui.Node
// delete ~/go/src & ~/go/pkg buttons
// button to delete everythign ~/go/src & ~/go/pkg
deleteGoSrcPkgB *gui.Node
// button to set all repo branches to master
setBranchesToMasterB *gui.Node
}
/*