2024-01-31 01:36:54 -06:00
|
|
|
// This is a simple example
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
|
|
|
|
func initWhitelist() {
|
|
|
|
release.whitelist = make(map[string]*repo)
|
|
|
|
for _, repo := range me.allrepos {
|
2024-02-02 17:14:57 -06:00
|
|
|
if strings.HasPrefix(repo.String(), "go.wit.com/dev/davecgh") {
|
2024-01-31 01:36:54 -06:00
|
|
|
release.whitelist[repo.String()] = repo
|
|
|
|
}
|
2024-02-02 17:04:57 -06:00
|
|
|
// if repo.String() == "go.wit.com/apps/guireleaser" {
|
|
|
|
// release.whitelist[repo.String()] = repo
|
|
|
|
// }
|
2024-02-01 15:50:51 -06:00
|
|
|
// if repo.String() == "go.wit.com/lib/gui/repostatus" {
|
|
|
|
// release.whitelist[repo.String()] = repo
|
|
|
|
// }
|
2024-01-31 01:36:54 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func whitelist(path string) bool {
|
|
|
|
// log.Info("whitelist START", path)
|
|
|
|
if me.ignoreWhitelist.Checked() {
|
2024-01-31 01:41:38 -06:00
|
|
|
return false
|
2024-01-31 01:36:54 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
_, ok := release.whitelist[path]
|
|
|
|
if ok {
|
|
|
|
// log.Info("whitelist ok == true", path)
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
// log.Info("whitelist ok == false", path)
|
|
|
|
return false
|
|
|
|
}
|