summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-18 15:09:48 -0600
committerJeff Carr <[email protected]>2024-02-18 15:09:48 -0600
commit1bafc298d3b37ca863ce58aba43c65081766f127 (patch)
tree7eb6e7486fea0518ab9abb2a9944f57e655b9a02 /common.go
parent6a6ebf78b829e4de858a1d1fb6d779af8e493954 (diff)
guireleaser runs again
Diffstat (limited to 'common.go')
-rw-r--r--common.go29
1 files changed, 26 insertions, 3 deletions
diff --git a/common.go b/common.go
index 4b2215a..a2f71f2 100644
--- a/common.go
+++ b/common.go
@@ -14,12 +14,12 @@ func (rs *RepoStatus) Changed() (string, bool) {
return "", false
}
- return rs.Changes(), rs.changed
+ return rs.getChanges(), rs.changed
}
// keeps a human readable list of things that have
-// changed
-func (rs *RepoStatus) Changes() string {
+// changed. todo: timestampe these?
+func (rs *RepoStatus) getChanges() string {
return rs.changes
}
@@ -165,3 +165,26 @@ func (rs *RepoStatus) Build() bool {
log.Warn("build failed", name)
return false
}
+
+func (rs *RepoStatus) GetGoSumStatus() string {
+ return rs.goSumStatus.String()
+}
+
+func (rs *RepoStatus) SetGoSumStatus(s string) {
+ rs.goSumStatus.SetText(s)
+}
+
+func (rs *RepoStatus) GetTargetVersion() string {
+ return rs.targetReleaseVersion.String()
+}
+
+func (rs *RepoStatus) IncrementVersion() bool {
+ return rs.setTag()
+}
+
+// TODO: run this through the sanity check!
+func (rs *RepoStatus) SetTargetVersion(s string) {
+ // todo: redo setTag to do increment logic
+ // func (rs *RepoStatus) setTag() bool {
+ rs.targetReleaseVersion.SetText(s)
+}