Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
3 changes: 2 additions & 1 deletion pkg/sourcetool/implementation.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"encoding/json"
"errors"
"fmt"
"net/http"
"strings"
"time"

Expand Down Expand Up @@ -309,7 +310,7 @@ func (impl *defaultToolImplementation) CreateRepositoryFork(
)

// GitHub will return 202 for larger repos that are cloned async
if err != nil && resp.StatusCode != 202 {
if err != nil && resp.StatusCode != http.StatusAccepted {
return fmt.Errorf("creating repository fork: %w", err)
}

Expand Down
Loading