diff options
| author | Jeff Carr <[email protected]> | 2025-10-21 04:48:14 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-21 04:48:14 -0500 |
| commit | 19cbfa7a819607e2602d48617ce9e96797fa6e1a (patch) | |
| tree | 3ea6ba8804b4ad9b03c6a95e4f09e317dcf237dc /find.go | |
| parent | 898592febc56eb1073525636666063396d85aca6 (diff) | |
trying to get this to run again
Diffstat (limited to 'find.go')
| -rw-r--r-- | find.go | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 } } |
