2024-01-09 15:34:53 -06:00
|
|
|
package repostatus
|
|
|
|
|
|
|
|
import (
|
2024-01-18 05:01:54 -06:00
|
|
|
"go.wit.com/gui"
|
2024-01-18 00:57:43 -06:00
|
|
|
"go.wit.com/lib/gadgets"
|
2024-01-09 15:34:53 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
type RepoStatus struct {
|
2024-02-23 11:00:33 -06:00
|
|
|
ready bool
|
|
|
|
changed bool // keeps track of changes that might have happened
|
2024-02-16 17:55:13 -06:00
|
|
|
changes string
|
2024-02-23 11:00:33 -06:00
|
|
|
tags map[string]string
|
2024-11-05 05:58:54 -06:00
|
|
|
InitOk bool // it takes a second or so to init these
|
2024-01-09 15:34:53 -06:00
|
|
|
|
2024-11-05 03:14:46 -06:00
|
|
|
// used to temporarily tell the automation tools to
|
|
|
|
// try to ignore this repo's changes and state
|
|
|
|
// specifically when doing formal releases, sometimes
|
|
|
|
// some repos are in flux and can't be changed. This
|
|
|
|
// means attempt to overlook that situation.
|
|
|
|
Whitelist bool
|
|
|
|
|
2024-02-23 11:00:33 -06:00
|
|
|
window *gadgets.BasicWindow // the main window for this repo
|
|
|
|
Tags *GitTagBox // a box of all the git tags
|
2024-02-07 08:51:45 -06:00
|
|
|
|
2024-02-20 06:54:11 -06:00
|
|
|
dirtyLabel *gadgets.OneLiner
|
2024-11-05 05:58:54 -06:00
|
|
|
dirtyList string // the output from git status --porcelain
|
2024-02-20 06:54:11 -06:00
|
|
|
readOnly *gadgets.OneLiner
|
|
|
|
gitState *gadgets.OneLiner
|
2024-11-05 05:58:54 -06:00
|
|
|
|
|
|
|
primitive *gadgets.OneLiner // aka: doesn't have a go.sum file
|
|
|
|
private *gadgets.OneLiner // it's not possible to publish this to pkg.go.dev
|
|
|
|
protobuf *gadgets.OneLiner // is this repo a protobuf repo?
|
2024-01-23 22:47:39 -06:00
|
|
|
|
|
|
|
path *gadgets.OneLiner
|
|
|
|
goSrcPath *gadgets.OneLiner
|
2024-02-19 14:42:59 -06:00
|
|
|
goPath *gadgets.OneLiner
|
2024-01-23 22:47:39 -06:00
|
|
|
realPath *gadgets.OneLiner
|
2024-02-16 11:41:29 -06:00
|
|
|
isGoLang *gadgets.OneLiner
|
2024-01-09 15:34:53 -06:00
|
|
|
|
2024-01-18 00:57:43 -06:00
|
|
|
currentBranch *gadgets.OneLiner
|
|
|
|
currentVersion *gadgets.OneLiner
|
2024-01-09 15:34:53 -06:00
|
|
|
|
2024-02-23 11:00:33 -06:00
|
|
|
mainWorkingName *gadgets.OneLiner // the actual name of the primary branch
|
|
|
|
develWorkingName *gadgets.OneLiner // the actual name of the devel branch
|
|
|
|
userWorkingName *gadgets.OneLiner // the actual name of the user branch
|
|
|
|
develMergeB *gui.Node // button to merge from user to devel
|
|
|
|
mainMergeB *gui.Node // button to merge from devel to master
|
|
|
|
releaseVersion *gui.Node // the release version
|
|
|
|
minor *gadgets.BasicCombobox // the '3' in version v3.1.4
|
|
|
|
major *gadgets.BasicCombobox // the '1' in version v3.1.4
|
|
|
|
revision *gadgets.BasicCombobox // the '4' in version v3.1.4
|
|
|
|
lasttag *gadgets.OneLiner // the last tag version
|
|
|
|
mainBranchVersion *gadgets.OneLiner // the primary branch version
|
|
|
|
develBranchVersion *gadgets.OneLiner // the devel branch version
|
|
|
|
userBranchVersion *gadgets.OneLiner // the user branch version
|
2024-01-11 15:56:50 -06:00
|
|
|
|
2024-01-29 09:31:22 -06:00
|
|
|
versionMessage *gadgets.BasicEntry
|
|
|
|
versionCmds [][]string
|
|
|
|
versionCmdOutput *gadgets.OneLiner
|
2024-01-27 13:06:57 -06:00
|
|
|
targetReleaseVersion *gadgets.OneLiner
|
2024-01-10 00:15:27 -06:00
|
|
|
|
2024-01-18 00:57:43 -06:00
|
|
|
newversion *gui.Node
|
2024-01-10 00:15:27 -06:00
|
|
|
|
2024-01-11 15:56:50 -06:00
|
|
|
gitBranchesGroup *gui.Node
|
2024-01-18 00:57:43 -06:00
|
|
|
gitStatusGroup *gui.Node
|
2024-01-11 15:56:50 -06:00
|
|
|
gitCommandsGroup *gui.Node
|
|
|
|
|
2024-01-18 00:57:43 -06:00
|
|
|
showBranchesButton *gui.Node
|
2024-01-13 20:30:33 -06:00
|
|
|
checkBranchesButton *gui.Node
|
|
|
|
|
2024-01-18 00:57:43 -06:00
|
|
|
speed *gadgets.OneLiner
|
|
|
|
speedActual *gadgets.OneLiner
|
2024-01-23 10:52:17 -06:00
|
|
|
|
|
|
|
gitConfig *GitConfig
|
|
|
|
goConfig GoConfig
|
2024-02-14 01:01:00 -06:00
|
|
|
|
|
|
|
switchBranchB *gui.Node
|
|
|
|
targetBranch *gui.Node
|
2024-01-09 15:34:53 -06:00
|
|
|
}
|