From 6b363b4d23f6de5a414ccab022ece125cfe9dbf3 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 25 May 2020 03:46:46 -0400 Subject: [PATCH] Changes github auth --- src/github/github.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github/github.ts b/src/github/github.ts index f2be9ad..5f293cc 100644 --- a/src/github/github.ts +++ b/src/github/github.ts @@ -61,7 +61,7 @@ export class GitHubApi { }; }>(query, { ...variables, - headers: { authorization: `token ${token}` }, + headers: { authorization: `Bearer ${token}` }, ...options, }); const pr = rsp?.repository?.object?.associatedPullRequests?.nodes?.[0]; @@ -132,7 +132,7 @@ export class GitHubApi { const rsp = await graphql<{ repository?: { issueOrPullRequest?: GitHubIssueOrPullRequest } }>(query, { ...variables, - headers: { authorization: `token ${token}` }, + headers: { authorization: `Bearer ${token}` }, ...options, }); const issue = rsp?.repository?.issueOrPullRequest;