diff options
Diffstat (limited to 'checkReady.go')
| -rw-r--r-- | checkReady.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/checkReady.go b/checkReady.go index b51ba48..270d836 100644 --- a/checkReady.go +++ b/checkReady.go @@ -29,7 +29,7 @@ func CheckReady() bool { log.Info("find the next repo first") return false } - goSumS := release.current.Status.GetGoSumStatus() + goSumS := release.current.GoState() dirtyS := release.current.State() lastS := release.current.Status.GetLastTagVersion() currentS := release.current.Status.GetCurrentBranchVersion() @@ -44,7 +44,7 @@ func CheckReady() bool { } if goSumS == "PRIMATIVE" { if targetS == lastS { - release.current.Status.SetGoSumStatus("RELEASED") + release.current.SetGoState("RELEASED") } return true } @@ -53,15 +53,15 @@ func CheckReady() bool { } if goSumS == "READY" { if targetS == lastS { - release.current.Status.SetGoSumStatus("RELEASED") + release.current.SetGoState("RELEASED") return true } if lastS == currentS { - release.current.Status.SetGoSumStatus("UNRELEASED") + release.current.SetGoState("UNRELEASED") } return true } - release.current.Status.SetGoSumStatus("NOT READY") + release.current.SetGoState("NOT READY") if release.current.Status.ReadOnly() { log.Info("\trepo is read only") return false @@ -69,12 +69,12 @@ func CheckReady() bool { if targetS == lastS { log.Info("\trepo is already done", lastS, "=", targetS) - release.current.Status.SetGoSumStatus("READY") + release.current.SetGoState("READY") return true } if lastS == currentS { log.Info("\trepo is already done", lastS, "=", targetS) - release.current.Status.SetGoSumStatus("READY") + release.current.SetGoState("READY") return true } @@ -129,7 +129,7 @@ func CheckReady() bool { return false } - release.current.Status.SetGoSumStatus("READY") + release.current.SetGoState("READY") return true } |
