diff options
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 +} |
