diff options
| author | Jeff Carr <[email protected]> | 2024-12-29 21:36:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-29 21:36:39 -0600 |
| commit | 45c32bc7fc00fd43b1b54d36f96671368323d238 (patch) | |
| tree | e33efb99a3dc5b775b59733ea9198b6ca1d9f8d9 /windowMain.go | |
| parent | 16a6c8b11ae51c693011e7d107adb15e99d4fe54 (diff) | |
add git author and emailv0.22.32
Diffstat (limited to 'windowMain.go')
| -rw-r--r-- | windowMain.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/windowMain.go b/windowMain.go index 5f7a71b..eb55656 100644 --- a/windowMain.go +++ b/windowMain.go @@ -65,6 +65,18 @@ func globalBuildOptions(vbox *gui.Node) { srcDir := filepath.Join(homeDir, "go/src") me.goSrcPwd.SetText(srcDir) + // use ENV GIT_AUTHOR + me.gitAuthor = gadgets.NewOneLiner(grid, "Git Author") + grid.NextRow() + + if os.Getenv("GIT_AUTHOR_NAME") == "" { + me.gitAuthor.SetText("ENV GIT_AUTHOR_NAME is unset") + } else { + author := os.Getenv("GIT_AUTHOR_NAME") + author += " <" + os.Getenv("GIT_AUTHOR_EMAIL") + ">" + me.gitAuthor.SetText(author) + } + // select the branch you want to test, build and develop against // this lets you select your user branch, but, when you are happy // you can merge everything into the devel branch and make sure it actually |
