#8 execute all page pr
This commit is contained in:
parent
b3a089b7b3
commit
cd1cc91f93
@ -427,7 +427,7 @@ func GetPulls(ctx context.Context, url, owner, repo, token string) ([]*giteaPull
|
||||
|
||||
buf, _ := io.ReadAll(rsp.Body)
|
||||
|
||||
if buf == nil {
|
||||
if len(buf) == 0 {
|
||||
break
|
||||
}
|
||||
|
||||
@ -445,6 +445,8 @@ func GetPulls(ctx context.Context, url, owner, repo, token string) ([]*giteaPull
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown error: %s", buf)
|
||||
}
|
||||
|
||||
fmt.Println(len(pullsAll))
|
||||
}
|
||||
|
||||
return pullsAll, nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user