@@ -260,7 +260,7 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules.
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if rsp.StatusCode != http.StatusOK {
|
||||
if rsp.StatusCode != http.StatusCreated {
|
||||
buf, _ = io.ReadAll(rsp.Body)
|
||||
return fmt.Errorf("unknown error: %s", buf)
|
||||
}
|
||||
|
Reference in New Issue
Block a user