No need to opt in to shadow-cat API preview

This was needed for draft pull requests, but these APIs were public
since Feburary 2020.
This commit is contained in:
Mislav Marohnić 2020-03-10 13:59:56 +01:00
parent 42b40b1179
commit 7c11f7655a

View file

@ -134,8 +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("Accept", "application/vnd.github.antiope-preview+json"),
)
return api.NewClient(opts...), nil