Parcourir la source

Changes github auth

main
Eric Amodio il y a 4 ans
Parent
révision
6b363b4d23
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      src/github/github.ts

+ 2
- 2
src/github/github.ts Voir le fichier

@ -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;

Chargement…
Annuler
Enregistrer