From baa79f8d8659953d5ed62e329622ba7a8a194b5c Mon Sep 17 00:00:00 2001 From: Gorbunov Kirill Andreevich Date: Sun, 31 Mar 2024 17:18:46 +0300 Subject: [PATCH] #8 execute all page pr --- internal/source/gitea/gitea.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/source/gitea/gitea.go b/internal/source/gitea/gitea.go index dc27143..9ec1133 100644 --- a/internal/source/gitea/gitea.go +++ b/internal/source/gitea/gitea.go @@ -436,6 +436,10 @@ func GetPulls(ctx context.Context, url, owner, repo, token string) ([]*giteaPull buf, _ := io.ReadAll(rsp.Body) + if buf == nil { + break + } + switch rsp.StatusCode { case http.StatusOK: if err = json.Unmarshal(buf, &pulls); err != nil {