diff options
| author | Jeff Carr <[email protected]> | 2024-02-18 07:24:56 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-18 07:24:56 -0600 |
| commit | 697696d3dfed934d36b21caa2f87afdfa1da5679 (patch) | |
| tree | dc321f02b16e0cd3baa4990bbd337d45319bb3a9 /submitPatches.go | |
| parent | 754371fdbf52d61dcd57d1b32b453b676cee01cf (diff) | |
fixing the release process
Diffstat (limited to 'submitPatches.go')
| -rw-r--r-- | submitPatches.go | 67 |
1 files changed, 57 insertions, 10 deletions
diff --git a/submitPatches.go b/submitPatches.go index dfdb402..17b63cb 100644 --- a/submitPatches.go +++ b/submitPatches.go @@ -27,19 +27,25 @@ type patchSummary struct { gitPullB *gui.Node checkB *gui.Node - totalOL *gadgets.OneLiner - totalGoOL *gadgets.OneLiner - dirtyOL *gadgets.OneLiner - readonlyOL *gadgets.OneLiner - totalPatchesOL *gadgets.OneLiner + // stats + totalOL *gadgets.OneLiner + totalGoOL *gadgets.OneLiner + dirtyOL *gadgets.OneLiner + readonlyOL *gadgets.OneLiner + totalPatchesOL *gadgets.OneLiner + totalUserRepos *gui.Node + totalDevelRepos *gui.Node + totalMasterRepos *gui.Node + totalUserPatches *gui.Node + totalDevelPatches *gui.Node + totalMasterPatches *gui.Node + // patch set generation unknownOL *gadgets.OneLiner unknownSubmitB *gui.Node - - reason *gadgets.BasicEntry - submitB *gui.Node - - allp []*patch + reason *gadgets.BasicEntry + submitB *gui.Node + allp []*patch } func submitPatchesBox(box *gui.Node) *patchSummary { @@ -156,10 +162,21 @@ func submitPatchesBox(box *gui.Node) *patchSummary { s.unknownSubmitB.Hide() s.grid.NextRow() + s.grid = group1.RawGrid() + s.grid.NewLabel("") + s.grid.NewLabel("") + s.grid.NewLabel("user to devel") + s.grid.NewLabel("devel to master") + s.grid.NewLabel("master to last tag") + s.grid.NextRow() + s.totalOL = gadgets.NewOneLiner(s.grid, "Total") s.grid.NextRow() s.totalGoOL = gadgets.NewOneLiner(s.grid, "Total GO") + s.totalUserRepos = s.grid.NewLabel("5 go repos") + s.totalDevelRepos = s.grid.NewLabel("3 go repos") + s.totalMasterRepos = s.grid.NewLabel("8 go repos") s.grid.NextRow() s.dirtyOL = gadgets.NewOneLiner(s.grid, "dirty") @@ -169,8 +186,19 @@ func submitPatchesBox(box *gui.Node) *patchSummary { s.grid.NextRow() s.totalPatchesOL = gadgets.NewOneLiner(s.grid, "total commits") + s.totalUserPatches = s.grid.NewLabel("5 patches") + s.totalDevelPatches = s.grid.NewLabel("3 patches") + s.totalMasterPatches = s.grid.NewLabel("8 patches") + s.grid.NextRow() + + s.grid.NewLabel("") + s.grid.NewLabel("") + s.grid.NewButton("merge from user", func() {}) + s.grid.NewButton("merge from devel", func() {}) s.grid.NextRow() + group1 = box.NewGroup("Create GUI Patch Set") + s.grid = group1.RawGrid() s.reason = gadgets.NewBasicEntry(s.grid, "patch name:") s.reason.Custom = func() { if s.reason.String() != "" { @@ -203,6 +231,8 @@ func submitPatchesBox(box *gui.Node) *patchSummary { func (s *patchSummary) Update() { var total, totalgo, dirty, readonly int + var userT, develT, masterT int + // var userP, develP, masterP int for _, repo := range repolist.AllRepos() { total += 1 if repo.Status.IsDirty() { @@ -219,12 +249,29 @@ func (s *patchSummary) Update() { if repo.Status.IsGoLang() { totalgo += 1 } + userV := repo.Status.GetUserVersion() + develV := repo.Status.GetDevelVersion() + masterV := repo.Status.GetMasterVersion() + lastV := repo.Status.GetLastTagVersion() + if userV != develV { + userT += 1 + } + if develV != masterV { + develT += 1 + } + if masterV != lastV { + masterT += 1 + } } s.totalOL.SetText(strconv.Itoa(total) + " repos") s.totalGoOL.SetText(strconv.Itoa(totalgo) + " repos") s.dirtyOL.SetText(strconv.Itoa(dirty) + " repos") s.readonlyOL.SetText(strconv.Itoa(readonly) + " repos") + s.totalUserRepos.SetText(strconv.Itoa(userT) + " repos") + s.totalDevelRepos.SetText(strconv.Itoa(develT) + " repos") + s.totalMasterRepos.SetText(strconv.Itoa(masterT) + " repos") + /* move all this to repolist and gowit repos p, allp := s.GetPatches() if s.allp == nil { |
