release automation
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
7c82f918aa
commit
3c3dc5309a
9
draw.go
9
draw.go
|
@ -222,6 +222,15 @@ func (rs *RepoStatus) drawGitCommands() {
|
||||||
newgrid.Pad()
|
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 {
|
func (rs *RepoStatus) setTag() bool {
|
||||||
lasttag := rs.lasttag.String()
|
lasttag := rs.lasttag.String()
|
||||||
var major, minor, revision string
|
var major, minor, revision string
|
||||||
|
|
12
gitConfig.go
12
gitConfig.go
|
@ -298,15 +298,11 @@ func (rs *RepoStatus) CheckGoSum() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
log.Log(WARN, " FOUND", newrs.String())
|
log.Log(WARN, " FOUND", newrs.String())
|
||||||
/*
|
username := newrs.userWorkingName.String()
|
||||||
for branch, _ := range rs.gitConfig.branches {
|
userhash, _ := newrs.gitConfig.hashes[username]
|
||||||
log.Log(WARN, " ", branch)
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
userhash, _ := newrs.gitConfig.hashes["jcarr"]
|
|
||||||
userversion, _ := newrs.gitConfig.versions[userhash]
|
userversion, _ := newrs.gitConfig.versions[userhash]
|
||||||
log.Log(WARN, " jcarr", userhash)
|
log.Log(WARN, " username :" + username, userhash)
|
||||||
log.Log(WARN, " jcarr", userversion)
|
log.Log(WARN, " username :" + username, userversion)
|
||||||
if version == userversion {
|
if version == userversion {
|
||||||
log.Log(WARN, " USER VERSIONS MATCH", version, userversion)
|
log.Log(WARN, " USER VERSIONS MATCH", version, userversion)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue