summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-23 01:23:29 -0600
committerJeff Carr <[email protected]>2024-02-23 01:23:29 -0600
commit1b65474a69bd0699e1a84eff35b4433c399cf657 (patch)
treeac8a84f74be1e248f8e20a1c635c056292e80fa9 /common.go
parent5105bd4a992acad1838fb2340ec8f2fee119a91b (diff)
add LastTag()
Diffstat (limited to 'common.go')
-rw-r--r--common.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/common.go b/common.go
index 0a40694..cbf798c 100644
--- a/common.go
+++ b/common.go
@@ -157,12 +157,16 @@ func (rs *RepoStatus) GetCurrentVersion() string {
return rs.currentVersion.String()
}
+func (rs *RepoStatus) LastTag() string {
+ return rs.lasttag.String()
+}
+
func (rs *RepoStatus) IncrementVersion() bool {
rs.incrementRevision()
rs.EnableSelectTag()
rs.setTag()
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)
return true
}