From fdf2dd8e687af52448b4ad99e508ff968f1e1d41 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 25 Jan 2024 22:47:05 -0600 Subject: [PATCH] more attempts to do a release Signed-off-by: Jeff Carr --- releaseWindow.go | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/releaseWindow.go b/releaseWindow.go index 3abec34..725556a 100644 --- a/releaseWindow.go +++ b/releaseWindow.go @@ -25,7 +25,7 @@ type releaseStruct struct { readOnly *gadgets.OneLiner notes *gadgets.OneLiner version *gadgets.OneLiner - reason *gadgets.OneLiner + reason *gadgets.BasicEntry openrepo *gui.Node @@ -94,6 +94,7 @@ func createReleaseWindow() { // log.Info("find the next repo to release here") release.current.status.Toggle() + release.current.status.SetVersion("0", "13", "11", release.reason.String()) }) release.openrepo.Disable() @@ -103,14 +104,14 @@ func createReleaseWindow() { release.notes = gadgets.NewOneLiner(release.grid, "notes") release.version = gadgets.NewOneLiner(release.grid, "version") - release.version.SetValue("0.13.11") + release.version.SetText("0.13.11") - release.reason = gadgets.NewOneLiner(release.grid, "reason") - release.reason.SetValue("release automation") + release.reason = gadgets.NewBasicEntry(release.grid, "release reason") + release.reason.SetText("hide works") release.sendVersionB = release.grid.NewButton("send version", func() { log.Info("set version()") - release.current.status.SetVersion("0", "13", "11", "release automation") + release.current.status.SetVersion("0", "13", "12", release.reason.String()) }) release.grid.NewButton("set ignore", func() { tmp := release.current.goSumStatus.String() @@ -275,6 +276,12 @@ func findNextDirty() bool { log.Info("findNextDirty()", repo.String(), goSumS, dirtyS) if goSumS == "PRIMATIVE" { + if dirtyS != "PERFECT" { + if setCurrentRepo(repo, "primative not committed", "release new version") { + return true + } + continue + } continue } if goSumS == "IGNORE" {