rename to repolist.RepoRow

This commit is contained in:
Jeff Carr 2024-02-23 09:01:58 -06:00
parent 0a42976595
commit 8a1cc3eaf3
6 changed files with 9 additions and 9 deletions

View File

@ -97,7 +97,7 @@ func doRelease() bool {
return true return true
} }
func checkValidGoSum(repo *repolist.Repo) bool { func checkValidGoSum(repo *repolist.RepoRow) bool {
ok, err := me.repos.View.CheckValidGoSum(repo) ok, err := me.repos.View.CheckValidGoSum(repo)
if err != nil { if err != nil {
log.Info("go mod tidy not ok") log.Info("go mod tidy not ok")

View File

@ -8,7 +8,7 @@ import (
"go.wit.com/log" "go.wit.com/log"
) )
func showHideRepos(repo *repolist.Repo) { func showHideRepos(repo *repolist.RepoRow) {
if repo.GoPath() == "go.wit.com/dev/alexflint/arg" { if repo.GoPath() == "go.wit.com/dev/alexflint/arg" {
log.Info("found autoHideReleased() =", me.autoHideReleased.Checked()) log.Info("found autoHideReleased() =", me.autoHideReleased.Checked())
log.Info("found alexflint/arg IsReleased() =", repo.Status.IsReleased()) log.Info("found alexflint/arg IsReleased() =", repo.Status.IsReleased())
@ -150,7 +150,7 @@ func globalDisplayOptions(box *gui.Node) {
log.Info(repo.GoPath(), "master and target differ", masterv, targetv) log.Info(repo.GoPath(), "master and target differ", masterv, targetv)
repo.Status.IncrementVersion() repo.Status.IncrementVersion()
newversion := repo.Status.GetNewVersionTag() newversion := repo.Status.GetNewVersionTag()
repo.Status.SetTargetVersion(newversion) repo.Status.SetTargetVersion("v" + newversion)
// already incremented // already incremented
continue continue
} }

View File

@ -8,7 +8,7 @@ import (
"go.wit.com/log" "go.wit.com/log"
) )
func lookToUnwind(r *repolist.Repo) bool { func lookToUnwind(r *repolist.RepoRow) bool {
goSumS := r.GoState() goSumS := r.GoState()
dirtyS := r.State() dirtyS := r.State()
currentS := r.Status.GetCurrentBranchVersion() currentS := r.Status.GetCurrentBranchVersion()

View File

@ -40,11 +40,11 @@ type releaseStruct struct {
makeRedomodB *gui.Node makeRedomodB *gui.Node
sendVersionB *gui.Node sendVersionB *gui.Node
checkSafeB *gui.Node checkSafeB *gui.Node
whitelist map[string]*repolist.Repo whitelist map[string]*repolist.RepoRow
// store myself here. use myself to // store myself here. use myself to
// do garbage go get tests and other potential junk // do garbage go get tests and other potential junk
guireleaser *repolist.Repo guireleaser *repolist.RepoRow
} }
func (w *autoType) Disable() { func (w *autoType) Disable() {
@ -266,7 +266,7 @@ func buttonEnable() {
me.Enable() me.Enable()
} }
func setCurrentRepo(newcur *repolist.Repo, s string, note string) bool { func setCurrentRepo(newcur *repolist.RepoRow, s string, note string) bool {
if newcur.ReadOnly() { if newcur.ReadOnly() {
return false return false
} }

View File

@ -17,7 +17,7 @@ type autoType struct {
reposbox *gui.Node reposbox *gui.Node
reposgrid *gui.Node reposgrid *gui.Node
reposgroup *gui.Node reposgroup *gui.Node
current *repolist.Repo current *repolist.RepoRow
// guireleaser window // guireleaser window
mainWindow *gui.Node mainWindow *gui.Node

View File

@ -8,7 +8,7 @@ import (
) )
func initWhitelist() { func initWhitelist() {
me.release.whitelist = make(map[string]*repolist.Repo) me.release.whitelist = make(map[string]*repolist.RepoRow)
for _, repo := range me.repos.View.AllRepos() { for _, repo := range me.repos.View.AllRepos() {
if strings.HasPrefix(repo.GoPath(), "go.wit.com/dev/davecgh") { if strings.HasPrefix(repo.GoPath(), "go.wit.com/dev/davecgh") {
me.release.whitelist[repo.GoPath()] = repo me.release.whitelist[repo.GoPath()] = repo