From 42b40b11791e552d4b465a02fd44f1c759ea2f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 10 Mar 2020 13:58:06 +0100 Subject: [PATCH 1/2] No longer need to opt into `pe_mobile` API flag `pe_mobile` was required to get access to `reviewDecision` and `statusCheckRollup`, but both are now public in GitHub API. --- command/root.go | 1 - 1 file changed, 1 deletion(-) diff --git a/command/root.go b/command/root.go index 7b0d078ef..dccc6e453 100644 --- a/command/root.go +++ b/command/root.go @@ -136,7 +136,6 @@ var apiClientForContext = func(ctx context.Context) (*api.Client, error) { // 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"), ) return api.NewClient(opts...), nil 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 2/2] 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