#8 add gitlab #13
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user