#8 execute all page pr

This commit is contained in:
Gorbunov Kirill Andreevich 2024-03-31 17:18:46 +03:00
parent 610f53f6be
commit baa79f8d86

View File

@ -436,6 +436,10 @@ func GetPulls(ctx context.Context, url, owner, repo, token string) ([]*giteaPull
buf, _ := io.ReadAll(rsp.Body) buf, _ := io.ReadAll(rsp.Body)
if buf == nil {
break
}
switch rsp.StatusCode { switch rsp.StatusCode {
case http.StatusOK: case http.StatusOK:
if err = json.Unmarshal(buf, &pulls); err != nil { if err = json.Unmarshal(buf, &pulls); err != nil {