summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
Diffstat (limited to 'find.go')
-rw-r--r--find.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/find.go b/find.go
index 4b05d0d..3e5826f 100644
--- a/find.go
+++ b/find.go
@@ -4,6 +4,8 @@
package main
import (
+ "strings"
+
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
@@ -155,6 +157,7 @@ func findReposWithPatches() *gitpb.Repos {
for repo := range me.forge.Repos.IterByFullPath() {
if repo.IsDirty() {
+ repo.State = "dirty"
// always add dirty branches
found.AppendByFullPath(repo)
continue
@@ -164,6 +167,7 @@ func findReposWithPatches() *gitpb.Repos {
continue
}
if repo.GetUserVersion() != repo.GetDevelVersion() {
+ repo.State = "userNEdevel"
found.AppendByFullPath(repo)
continue
}
@@ -183,14 +187,18 @@ func findReposWithPatches() *gitpb.Repos {
// log.Info("repo state", repo.FullPath, repo.State)
continue
}
+ repo.State = "devVSmaster"
found.AppendByFullPath(repo)
continue
}
// this is an old test to see if the current 'last tag' is accurate and should be removed
if repo.GetLastTag() != repo.GetMasterVersion() {
- found.AppendByFullPath(repo)
- repo.FindLastTag()
+ if strings.HasPrefix(repo.Namespace, "go.wit.com") {
+ repo.State = "tagVSmaster"
+ found.AppendByFullPath(repo)
+ repo.FindLastTag()
+ }
continue
}
}