diff options
| author | Jeff Carr <[email protected]> | 2024-02-19 19:42:14 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-19 19:42:14 -0600 |
| commit | 8df9f47a23d9bb14fe908b5564ef5884b0efd6f2 (patch) | |
| tree | 74177ed317c961e66913b83446ea4c522f6451fb /main.go | |
| parent | 84115c27121574923ed29f37b9b057de0761ff2c (diff) | |
start cleaning up the buttons
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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") } |
