summaryrefslogtreecommitdiff
path: root/windowPublish.go
blob: 85708a9ebe6338f7da71b365fc7ecc9e26c31e92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// 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"
)

// 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
}