浏览代码

Changes github auth

main
Eric Amodio 4 年前
父节点
当前提交
6b363b4d23
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/github/github.ts

+ 2
- 2
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;

正在加载...
取消
保存