From 1b65474a69bd0699e1a84eff35b4433c399cf657 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 23 Feb 2024 01:23:29 -0600 Subject: [PATCH] add LastTag() --- common.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }