expose the computed autoincrement value

This commit is contained in:
Jeff Carr 2024-02-23 07:28:15 -06:00
parent 1b65474a69
commit 5268267408
1 changed files with 6 additions and 0 deletions

View File

@ -186,6 +186,12 @@ func (rs *RepoStatus) setTag() bool {
rs.newversion.SetLabel(newver) rs.newversion.SetLabel(newver)
return true return true
} }
// the newversion field goes through some sanity checking
// to make sure it's greater than the existing tag and
// valid according to golang -- it must be format 'v1.2.3'
func (rs *RepoStatus) GetNewVersionTag() string {
return rs.newversion.String()
}
func (rs *RepoStatus) incrementRevision() { func (rs *RepoStatus) incrementRevision() {
lasttag := rs.lasttag.String() lasttag := rs.lasttag.String()