summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-03 18:00:42 -0600
committerJeff Carr <[email protected]>2024-12-03 18:00:42 -0600
commit9b9df05f33e20277ff0e5e811c55d95ab56f562c (patch)
treebf151e340c7b6408303a3012c9bb41573767cc30 /http.go
parent9b2e99ac6b4ce29f3a248f380f50123a406d1650 (diff)
more removal of old stuff
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")