mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-05 15:48:34 +00:00
Play around with github app credentials
This commit is contained in:
committed by
Roberto Hidalgo
parent
25cd66daa5
commit
199cdfe192
2
vendor/github.com/google/go-github/v28/github/git_refs.go
generated
vendored
2
vendor/github.com/google/go-github/v28/github/git_refs.go
generated
vendored
@@ -69,7 +69,7 @@ func (s *GitService) GetRef(ctx context.Context, owner string, repo string, ref
|
||||
if _, ok := err.(*json.UnmarshalTypeError); ok {
|
||||
// Multiple refs, means there wasn't an exact match.
|
||||
return nil, resp, errors.New("multiple matches found for this ref")
|
||||
} else if resp.StatusCode == 404 {
|
||||
} else if _, ok := err.(*ErrorResponse); ok && resp.StatusCode == 404 {
|
||||
// No ref, there was no match for the ref
|
||||
return nil, resp, errors.New("no match found for this ref")
|
||||
} else if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user