process on a *gitpb.Repos
This commit is contained in:
parent
c4f9430e46
commit
272f965eec
12
human.go
12
human.go
|
@ -77,23 +77,17 @@ func ReleaseReportHeader() string {
|
||||||
"STATE")
|
"STATE")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Forge) PrintReleaseReport() int {
|
func (f *Forge) PrintReleaseReport(repos *gitpb.Repos) int {
|
||||||
var count int
|
var count int
|
||||||
|
|
||||||
log.Info(ReleaseReportHeader())
|
log.Info(ReleaseReportHeader())
|
||||||
|
|
||||||
loop := f.Repos.SortByFullPath()
|
loop := repos.SortByFullPath()
|
||||||
for loop.Scan() {
|
for loop.Scan() {
|
||||||
check := loop.Next()
|
check := loop.Next()
|
||||||
if f.Config.IsReadOnly(check.GetGoPath()) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if check.GetLastTag() == check.GetTargetVersion() {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
count += 1
|
count += 1
|
||||||
if check == nil {
|
if check == nil {
|
||||||
log.Info("boo, you didn't git clone", check.GetGoPath())
|
// wtf
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
var state string
|
var state string
|
||||||
|
|
Loading…
Reference in New Issue