old whitelist removed

This commit is contained in:
Jeff Carr 2024-11-13 18:13:20 -06:00
parent fc4079aae3
commit 0354e5a4a0
3 changed files with 2 additions and 49 deletions

View File

@ -151,7 +151,7 @@ func setAllBranchesToMaster() bool {
if repo.IsDirty() {
continue
}
if whitelist(repo.GoPath()) {
if repo.Status.Whitelist {
continue
}
if repo.Status.CheckoutMaster() {

View File

@ -51,8 +51,6 @@ func (w *autoType) Enable() {
}
func createReleaseBox(box *gui.Node) {
initWhitelist()
me.release.box = box.NewVerticalBox("vbox")
me.release.group = me.release.box.NewGroup("Current Repo")
me.release.grid = me.release.group.NewGrid("buildOptions", 0, 0)
@ -186,7 +184,7 @@ func createReleaseBox(box *gui.Node) {
if repo.Status.ReadOnly() {
continue
}
if whitelist(repo.GoPath()) {
if repo.Status.Whitelist {
log.Warn("skipping whitelist", repo.GoPath())
continue
}
@ -281,9 +279,6 @@ func findNext() bool {
if repo.Status.IsReleased() {
continue
}
if whitelist(repo.GoPath()) {
continue
}
if repo.Status.Whitelist {
continue
}

View File

@ -1,42 +0,0 @@
// This is a simple example
package main
import (
"strings"
"go.wit.com/lib/gui/repolist"
)
func initWhitelist() {
me.release.whitelist = make(map[string]*repolist.RepoRow)
for _, repo := range me.repos.View.AllRepos() {
if strings.HasPrefix(repo.GoPath(), "go.wit.com/dev/davecgh") {
repo.Status.Whitelist = true
// me.release.whitelist[repo.GoPath()] = repo
}
//
// if repo.String() == "go.wit.com/apps/guireleaser" {
// me.release.whitelist[repo.String()] = repo
// }
//
// if repo.String() == "go.wit.com/lib/gui/repostatus" {
// me.release.whitelist[repo.String()] = repo
// }
//
}
}
func whitelist(path string) bool {
// log.Info("whitelist START", path)
// if me.ignoreWhitelist.Checked() {
// return false
// }
_, ok := me.release.whitelist[path]
if ok {
// log.Info("whitelist ok == true", path)
return true
}
// log.Info("whitelist ok == false", path)
return false
}