diff options
| author | Jeff Carr <[email protected]> | 2025-08-28 10:11:31 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-28 10:11:31 -0500 |
| commit | 9bcf2d968c7565516ee55c4473670a888f36b3f7 (patch) | |
| tree | 1277b4a773e5a065670379cc5b41fc9aa53ac5a1 /windowPublish.go | |
| parent | a21c117e5bff4dac56634ba6ad3b166a0fba2da8 (diff) | |
add "forge normal" to reset things to default development statev0.22.129
Diffstat (limited to 'windowPublish.go')
| -rw-r--r-- | windowPublish.go | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/windowPublish.go b/windowPublish.go new file mode 100644 index 0000000..7e1e956 --- /dev/null +++ b/windowPublish.go @@ -0,0 +1,41 @@ +// Copyright 2017-2025 WIT.COM Inc. All rights reserved. +// Use of this source code is governed by the GPL 3.0 + +package main + +// An app to submit patches for the 30 GO GUI repos + +import ( + "go.wit.com/lib/gadgets" + "go.wit.com/log" +) + +// Publish Window +func makePublishWindow() *gadgets.GenericWindow { + pubWin := gadgets.NewGenericWindow("publish code", "tasks for merging, versioning and publishing code") + + grid := pubWin.Group.RawGrid() + + grid.NewButton("merge all patches to master", func() { + pubWin.Disable() + defer pubWin.Enable() + + if err := doAllCheckoutDevel(); err != nil { + log.Info("checkout error:", err) + } else { + log.Info("checkout was ok") + } + + mergeUserToDevel(true) + + if err := doAllCheckoutMaster(); err != nil { + log.Info("checkout error:", err) + } else { + log.Info("checkout was ok") + } + + mergeDevelToMaster(true) + }) + + return pubWin +} |
