#8 execute all page pr

This commit is contained in:
Gorbunov Kirill Andreevich 2024-03-31 17:24:10 +03:00
parent 687acd85c7
commit b3a089b7b3

View File

@ -411,7 +411,7 @@ func GetPulls(ctx context.Context, url, owner, repo, token string) ([]*giteaPull
req, err := http.NewRequestWithContext( req, err := http.NewRequestWithContext(
ctx, ctx,
http.MethodGet, http.MethodGet,
fmt.Sprintf("https://%s/api/v1//repos/%s/%s/pulls?state=open&page=%s&token=%s", url, owner, repo, page, token), fmt.Sprintf("https://%s/api/v1//repos/%s/%s/pulls?state=open&page=%v&token=%s", url, owner, repo, page, token),
nil) nil)
if err != nil { if err != nil {
return nil, err return nil, err