summaryrefslogtreecommitdiff
path: root/windowSummary.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-28 22:47:53 -0600
committerJeff Carr <[email protected]>2025-01-29 12:18:16 -0600
commit345c1ee9b1a3d5a55fef53edb2f3a6d89aaf2fcd (patch)
treee49f21b69ecc672041c7aa5c63b747e5c5bd8c2c /windowSummary.go
parentbbf5f79acb6d17239a492effb4e2cdb15ef20579 (diff)
move submit patchset to forgepb
Diffstat (limited to 'windowSummary.go')
-rw-r--r--windowSummary.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/windowSummary.go b/windowSummary.go
index 4b60413..a5c4879 100644
--- a/windowSummary.go
+++ b/windowSummary.go
@@ -6,6 +6,7 @@ import (
"go.wit.com/gui"
"go.wit.com/lib/gadgets"
+ "go.wit.com/log"
)
type patchSummary struct {
@@ -74,8 +75,14 @@ func (r *patchesWindow) submitPatchesBox(box *gui.Node) *patchSummary {
s.submitB.Disable()
}
}
- s.submitB = s.grid.NewButton("Create", func() {
- doSubmit(s.reason.String())
+ s.submitB = s.grid.NewButton("Submit", func() {
+ pset, err := me.forge.SubmitDevelPatchSet(s.reason.String())
+ if err != nil {
+ log.Info(err)
+ return
+ }
+ line := "somedate some reason Author: me" + pset.GitAuthorEmail
+ me.patchWin.addPatchset(line)
})
/*