From 7c11f7655a2ac4349e765e671216f2e984e3e5af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 10 Mar 2020 13:59:56 +0100 Subject: [PATCH] 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. --- command/root.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command/root.go b/command/root.go index dccc6e453..cae4bab4e 100644 --- a/command/root.go +++ b/command/root.go @@ -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