release automation

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-24 01:57:01 -06:00
parent 7c82f918aa
commit 3c3dc5309a
2 changed files with 13 additions and 8 deletions

View File

@ -222,6 +222,15 @@ func (rs *RepoStatus) drawGitCommands() {
newgrid.Pad()
}
func (rs *RepoStatus) SetVersion(a, b, c string, reason string) {
rs.major.SetText(a)
rs.minor.SetText(b)
rs.revision.SetText(c)
rs.versionMessage.SetLabel(reason)
}
func (rs *RepoStatus) setTag() bool {
lasttag := rs.lasttag.String()
var major, minor, revision string

View File

@ -298,15 +298,11 @@ func (rs *RepoStatus) CheckGoSum() bool {
return false
}
log.Log(WARN, " FOUND", newrs.String())
/*
for branch, _ := range rs.gitConfig.branches {
log.Log(WARN, " ", branch)
}
*/
userhash, _ := newrs.gitConfig.hashes["jcarr"]
username := newrs.userWorkingName.String()
userhash, _ := newrs.gitConfig.hashes[username]
userversion, _ := newrs.gitConfig.versions[userhash]
log.Log(WARN, " jcarr", userhash)
log.Log(WARN, " jcarr", userversion)
log.Log(WARN, " username :" + username, userhash)
log.Log(WARN, " username :" + username, userversion)
if version == userversion {
log.Log(WARN, " USER VERSIONS MATCH", version, userversion)
} else {