We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3826559 commit c686446Copy full SHA for c686446
sourcetool/.golangci.yaml renamed to .golangci.yaml
pkg/sourcetool/implementation.go
@@ -9,6 +9,7 @@ import (
9
"encoding/json"
10
"errors"
11
"fmt"
12
+ "net/http"
13
"strings"
14
"time"
15
@@ -309,7 +310,7 @@ func (impl *defaultToolImplementation) CreateRepositoryFork(
309
310
)
311
312
// GitHub will return 202 for larger repos that are cloned async
- if err != nil && resp.StatusCode != 202 {
313
+ if err != nil && resp.StatusCode != http.StatusAccepted {
314
return fmt.Errorf("creating repository fork: %w", err)
315
}
316
0 commit comments