add LastTag()
This commit is contained in:
parent
5105bd4a99
commit
1b65474a69
|
@ -157,12 +157,16 @@ func (rs *RepoStatus) GetCurrentVersion() string {
|
||||||
return rs.currentVersion.String()
|
return rs.currentVersion.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (rs *RepoStatus) LastTag() string {
|
||||||
|
return rs.lasttag.String()
|
||||||
|
}
|
||||||
|
|
||||||
func (rs *RepoStatus) IncrementVersion() bool {
|
func (rs *RepoStatus) IncrementVersion() bool {
|
||||||
rs.incrementRevision()
|
rs.incrementRevision()
|
||||||
rs.EnableSelectTag()
|
rs.EnableSelectTag()
|
||||||
rs.setTag()
|
rs.setTag()
|
||||||
newtag := "v" + rs.newversion.String()
|
newtag := "v" + rs.newversion.String()
|
||||||
log.Log(REPOWARN, "new version is set to", newtag, "set target version to this")
|
log.Log(REPOWARN, rs.GoPath(), "old version:", rs.LastTag(), "new version:", newtag)
|
||||||
rs.targetReleaseVersion.SetText(newtag)
|
rs.targetReleaseVersion.SetText(newtag)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue