add LastTag()

This commit is contained in:
Jeff Carr 2024-02-23 01:23:29 -06:00
parent 5105bd4a99
commit 1b65474a69
1 changed files with 5 additions and 1 deletions

View File

@ -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
} }