#19 #20

Closed
kgorbunov wants to merge 112 commits from kgorbunov/pkgdash:#19 into master
Showing only changes of commit cd1cc91f93 - Show all commits

View File

@ -427,7 +427,7 @@ func GetPulls(ctx context.Context, url, owner, repo, token string) ([]*giteaPull
buf, _ := io.ReadAll(rsp.Body) buf, _ := io.ReadAll(rsp.Body)
if buf == nil { if len(buf) == 0 {
break break
} }
@ -445,6 +445,8 @@ func GetPulls(ctx context.Context, url, owner, repo, token string) ([]*giteaPull
default: default:
return nil, fmt.Errorf("unknown error: %s", buf) return nil, fmt.Errorf("unknown error: %s", buf)
} }
fmt.Println(len(pullsAll))
} }
return pullsAll, nil return pullsAll, nil