diff options
| author | Jeff Carr <[email protected]> | 2024-02-23 07:28:15 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-23 07:28:15 -0600 |
| commit | 5268267408166a8b6d80ada8231399d657a21243 (patch) | |
| tree | 0fc2e1eea9c4beab96328dc3889ebc673b52c807 | |
| parent | 1b65474a69bd0699e1a84eff35b4433c399cf657 (diff) | |
expose the computed autoincrement valuev0.20.9
| -rw-r--r-- | merge.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -186,6 +186,12 @@ func (rs *RepoStatus) setTag() bool { rs.newversion.SetLabel(newver) 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() { lasttag := rs.lasttag.String() |
