diff options
| author | Jeff Carr <[email protected]> | 2024-02-19 14:40:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-19 14:40:21 -0600 |
| commit | 84115c27121574923ed29f37b9b057de0761ff2c (patch) | |
| tree | 41f43bdd483bdf3a0077958f8f69fd87fee7a591 /main.go | |
| parent | a7619389df4fc214e52e3db7c8336514bdcc82b0 (diff) | |
start clean up and rearrage buttons
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -71,7 +71,6 @@ func main() { // scan in the repo map first // hopefully this is the list of all the golang packages and only the GUI golang packages me.repos = makeRepoView() - log.Sleep(3) // create the right side of the main window createReleaseBox(me.mainBox) @@ -101,16 +100,10 @@ func main() { }) } -func setRepoState() { - // start the initail scan and make sure each repo is set - // to the master branch +// start the initail scan and make sure each repo is set +// to the master branch +func setBranchToMaster() { for _, repo := range me.repos.View.AllRepos() { - if repo.ReadOnly() { - continue - } - if whitelist(repo.GoPath()) { - continue - } if repo.Status.CheckoutMaster() { log.Warn("git checkout master branch worked", repo.Name()) } else { @@ -118,6 +111,9 @@ func setRepoState() { } repo.NewScan() } +} + +func setTargetVersion() { // go through and set the target versions for each repo // todo: add sanity checking in repolist to verify these and/or autocompute them // for now, just don't be stupid when you set your ENV vars @@ -147,8 +143,6 @@ func setRepoState() { lasttag := repo.Status.GetLastTagVersion() repo.Status.SetTargetVersion(lasttag) } - } - for _, repo := range me.repos.View.AllRepos() { repo.NewScan() } } |
