summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'http.go')
-rw-r--r--http.go16
1 files changed, 11 insertions, 5 deletions
diff --git a/http.go b/http.go
index 99b2863..846f93a 100644
--- a/http.go
+++ b/http.go
@@ -259,22 +259,28 @@ func showNext() {
return
}
+ check := me.forge.Repos.FindByGoPath(me.current.GoPath())
+ if check == nil {
+ log.Info("forge: how was this not found?", me.current.GoPath())
+ return
+ }
+
if me.current.Status.IsReleased() {
- log.Info("IsReleased() == true SHOULD NOT RELEASE THIS")
+ log.Info("IsReleased() == true. do not release this a second time")
} else {
log.Info("IsReleased() == false")
}
- if me.current.Status.CheckDirty() {
- log.Info("CheckDirty() == true. SHOULD NOT RELEASE THIS")
+ if check.CheckDirty() {
+ log.Info("CheckDirty() == true. do not release dirty repos")
} else {
log.Info("CheckDirty() == false")
}
- if me.current.Status.IsPrimitive() {
+ if ok, _ := check.IsPrimitive(); ok {
log.Info("IsPrimitive() == true")
} else {
log.Info("IsPrimitive() == false")
}
- if me.current.Status.IsPrivate() {
+ if me.forge.IsPrivate(check.GoPath) {
log.Info("IsPrivate() == true")
} else {
log.Info("IsPrivate() == false")