summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}