summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
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)
+}