From 8df9f47a23d9bb14fe908b5564ef5884b0efd6f2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 19 Feb 2024 19:42:14 -0600 Subject: start cleaning up the buttons --- main.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 25ca301..5464360 100644 --- a/main.go +++ b/main.go @@ -104,12 +104,15 @@ func main() { // to the master branch func setBranchToMaster() { for _, repo := range me.repos.View.AllRepos() { + if whitelist(repo.GoPath()) { + continue + } if repo.Status.CheckoutMaster() { log.Warn("git checkout master branch worked", repo.Name()) } else { log.Warn("git checkout master branch failed", repo.Name()) } - repo.NewScan() + // repo.NewScan() } } @@ -122,13 +125,13 @@ func setTargetVersion() { // set the version for a path, it's set in stone forever. (smart system!) // we could rename go.wit.com/widget to go.wit.com/newwidget and restart the versioning // system, but that's rediculous and this servers to always remind me to never make this mistake again + var count int for i, repo := range me.repos.View.AllRepos() { if repo == nil { - log.Info("initial scan i = nil", i) + log.Info("initial scan repo = nil", i) continue } - log.Info("initial scan repo", repo.Name()) if repo.Status == nil { log.Info("repo.status == nil", repo.Name()) continue @@ -143,6 +146,8 @@ func setTargetVersion() { lasttag := repo.Status.GetLastTagVersion() repo.Status.SetTargetVersion(lasttag) } - repo.NewScan() + // repo.NewScan() + count += 1 } + log.Info("target versions set for", count, "repos") } -- cgit v1.2.3