diff options
Diffstat (limited to 'doRelease.go')
| -rw-r--r-- | doRelease.go | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/doRelease.go b/doRelease.go index 4c19b98..71ca2aa 100644 --- a/doRelease.go +++ b/doRelease.go @@ -16,7 +16,7 @@ import ( ) func doRelease() bool { - log.Info("doRelease() on", me.current.Name()) + log.Info("doRelease() on", me.current.GetGoPath()) if !findOk { log.Info("doRelease() immediately end something went wrong last time. findOk == false") return false @@ -41,8 +41,8 @@ func doRelease() bool { return false } - curName := me.current.Status.GetCurrentBranchName() - mName := me.current.Status.GetMasterBranchName() + curName := me.current.GetCurrentBranchName() + mName := me.current.GetMasterBranchName() if curName != mName { log.Info("\trepo is not working from main branch", curName, "!=", mName) return false @@ -122,7 +122,7 @@ func doRelease() bool { badExit(errors.New(msg)) } - if !me.current.Status.DoAll(all) { + if !me.current.RunAll(all) { log.Info("failed to make new release", me.release.version.String()) findOk = false return false @@ -159,7 +159,7 @@ func doRelease() bool { // unwind and re-tag. Now that the go.mod and go.sum are published, revert // to the development branch - if !me.current.Status.RevertMasterToDevel() { + if !me.current.RevertMasterToDevel() { log.Info("Revert Failed") findOk = false return false @@ -179,12 +179,12 @@ func doRelease() bool { check.Run(cmd) } - if !me.current.Status.DoAll(retag) { + if !me.current.RunAll(retag) { log.Info("retag failed") findOk = false return false } - log.Info("EVERYTHING OK. RERELEASED", me.current.Name()) + log.Info("EVERYTHING OK. RERELEASED", me.current.GetGoPath()) // save autogen files under the tag version (for example: "v0.2.3") newtag := me.release.version.String() @@ -200,7 +200,9 @@ func doRelease() bool { me.forge = forgepb.Init() // update the values in the GUI - me.current.NewScan() + if repov := me.repos.View.FindByPath(check.GetGoPath()); repov != nil { + repov.NewScan2(check) + } // attempt to find another repo to release if !doReleaseFindNext() { @@ -211,7 +213,7 @@ func doRelease() bool { os.Setenv("FindNextDone", "true") return false } - log.Info("GOOD TO RUN ANOTHER DAY ON:", me.current.Name()) + log.Info("GOOD TO RUN ANOTHER DAY ON:", me.current.GetGoPath()) return true } @@ -252,7 +254,7 @@ func doPublishVersion() bool { docmd := []string{"go", "get", "-v", gopath + "@" + me.release.version.String()} log.Info("SHOULD RUN cmd HERE:", docmd) - if me.current.Status.IsPrivate() { + if me.forge.Config.IsPrivate(me.current.GetGoPath()) { // do not self update private repos log.Info("This is a private repo and can not be self checked") return true |
