summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-20 21:18:03 -0600
committerJeff Carr <[email protected]>2024-01-20 21:18:03 -0600
commit7a05ee53abcc5585a727f541a7d685121b7f8145 (patch)
tree6ce2bb006c323a7bc73f25485b4f1b2d8c9c3031 /git.go
parente3cc044efc879682911c8f62f77d07ca7c49b7e9 (diff)
changes for the autotypistv0.12.17
go mod automation testing read tags Signed-off-by: Jeff Carr <[email protected]> Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'git.go')
-rw-r--r--git.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/git.go b/git.go
index 61fc2c8..782a30d 100644
--- a/git.go
+++ b/git.go
@@ -243,14 +243,17 @@ func (rs *RepoStatus) GetStatus() string {
return "merge to devel"
}
if rs.userBranchVersion.String() != rs.masterBranchVersion.String() {
- return "release"
+ return "ready to release"
+ }
+ if rs.lasttag.String() != rs.masterBranchVersion.String() {
+ return "ready to tag version"
}
if rs.CheckBranches() {
log.Warn("Branches are Perfect")
return "PERFECT"
}
- log.Warn("Branches are not Perfect")
+ log.Warn(rs.GetPath(), "Branches are not Perfect")
return "unknown branches"
}