Browse Source

Changes github auth

main
Eric Amodio 4 years ago
parent
commit
6b363b4d23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/github/github.ts

+ 2
- 2
src/github/github.ts View File

@ -61,7 +61,7 @@ export class GitHubApi {
}; };
}>(query, { }>(query, {
...variables, ...variables,
headers: { authorization: `token ${token}` },
headers: { authorization: `Bearer ${token}` },
...options, ...options,
}); });
const pr = rsp?.repository?.object?.associatedPullRequests?.nodes?.[0]; const pr = rsp?.repository?.object?.associatedPullRequests?.nodes?.[0];
@ -132,7 +132,7 @@ export class GitHubApi {
const rsp = await graphql<{ repository?: { issueOrPullRequest?: GitHubIssueOrPullRequest } }>(query, { const rsp = await graphql<{ repository?: { issueOrPullRequest?: GitHubIssueOrPullRequest } }>(query, {
...variables, ...variables,
headers: { authorization: `token ${token}` },
headers: { authorization: `Bearer ${token}` },
...options, ...options,
}); });
const issue = rsp?.repository?.issueOrPullRequest; const issue = rsp?.repository?.issueOrPullRequest;

Loading…
Cancel
Save