48 lines
1.2 KiB
Go
48 lines
1.2 KiB
Go
// This is a simple example
|
|
package main
|
|
|
|
/*
|
|
func scanGoSum() {
|
|
for _, repo := range me.repos.View.AllRepos() {
|
|
if repo.GoPath() == "go.wit.com/apps/guireleaser" {
|
|
if me.release.guireleaser == nil {
|
|
me.release.guireleaser = repo
|
|
}
|
|
}
|
|
latestversion := repo.Status.GetLastTagVersion()
|
|
if repo.GoState() == "BAD" {
|
|
continue
|
|
}
|
|
if repo.GoState() == "DIRTY" {
|
|
continue
|
|
}
|
|
if repo.Status.IsPrimitive() {
|
|
log.Info("PRIMITIVE repo:", latestversion, repo.GoPath())
|
|
repo.SetGoState("PRIMITIVE")
|
|
continue
|
|
}
|
|
if repo.CheckDirty() {
|
|
log.Info("dirty repo:", latestversion, repo.GoPath())
|
|
log.Info("dirty repo.getGoSumStatus =", repo.GoState())
|
|
repo.SetGoState("DIRTY")
|
|
|
|
// me.release.repo.SetValue(repo.status.String())
|
|
// me.release.status.SetValue("dirty")
|
|
// me.release.notes.SetValue("You must commit your changes\nbefore you can continue")
|
|
// me.current = repo
|
|
// me.release.openrepo.Enable()
|
|
continue
|
|
}
|
|
status := repo.State()
|
|
if status == "PERFECT" {
|
|
continue
|
|
} else {
|
|
repo.NewScan()
|
|
}
|
|
|
|
log.Info("repo:", latestversion, status, repo.GoPath())
|
|
}
|
|
log.Info("scanGoSum() did everything, not sure what to do next")
|
|
}
|
|
*/
|