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:
parent
42b40b1179
commit
7c11f7655a
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue