Merge pull request #628 from cli/api-flags-rm

Stop opting into API previews that have since shipped
This commit is contained in:
Nate Smith 2020-03-10 14:40:11 -07:00 committed by GitHub
commit d03b94c5b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,9 +134,7 @@ var apiClientForContext = func(ctx context.Context) (*api.Client, error) {
api.AddHeader("Authorization", fmt.Sprintf("token %s", token)),
api.AddHeader("User-Agent", fmt.Sprintf("GitHub CLI %s", Version)),
// antiope-preview: Checks
// shadow-cat-preview: Draft pull requests
api.AddHeader("Accept", "application/vnd.github.antiope-preview+json, application/vnd.github.shadow-cat-preview"),
api.AddHeader("GraphQL-Features", "pe_mobile"),
api.AddHeader("Accept", "application/vnd.github.antiope-preview+json"),
)
return api.NewClient(opts...), nil