mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-02 11:18:46 +00:00
Vendor using dep
This commit is contained in:
6
vendor/github.com/google/go-github/github/pulls.go
generated
vendored
6
vendor/github.com/google/go-github/github/pulls.go
generated
vendored
@@ -254,6 +254,9 @@ func (s *PullRequestsService) ListCommits(ctx context.Context, owner string, rep
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
// TODO: remove custom Accept header when this API fully launches.
|
||||
req.Header.Set("Accept", mediaTypeGitSigningPreview)
|
||||
|
||||
var commits []*RepositoryCommit
|
||||
resp, err := s.client.Do(ctx, req, &commits)
|
||||
if err != nil {
|
||||
@@ -343,9 +346,6 @@ func (s *PullRequestsService) Merge(ctx context.Context, owner string, repo stri
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
// TODO: This header will be unnecessary when the API is no longer in preview.
|
||||
req.Header.Set("Accept", mediaTypeSquashPreview)
|
||||
|
||||
mergeResult := new(PullRequestMergeResult)
|
||||
resp, err := s.client.Do(ctx, req, mergeResult)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user