From 7a05ee53abcc5585a727f541a7d685121b7f8145 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 20 Jan 2024 21:18:03 -0600 Subject: changes for the autotypist go mod automation testing read tags Signed-off-by: Jeff Carr Signed-off-by: Jeff Carr --- git.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'git.go') 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" } -- cgit v1.2.3