豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 912311a

Browse files
committed
fix(github-actions): properly set the authentication token for feature request action (#306)
The octokit constructor was initially created with an older version of Octokit which supported providing the token as a property `token`, the property is now expected to be `auth` to properly use the token for authentication. PR Close #306
1 parent 09a1060 commit 912311a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

github-actions/feature-request/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11762,7 +11762,7 @@ var require_octokit = __commonJS({
1176211762
this.options = options;
1176311763
this._orgMembers = new Set();
1176411764
this.mockLabels = new Set();
11765-
this._octokit = new rest_1.Octokit({ token });
11765+
this._octokit = new rest_1.Octokit({ auth: token });
1176611766
}
1176711767
get octokit() {
1176811768
return this._octokit;

github-actions/feature-request/src/octokit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class OctoKit implements GitHubAPI {
3434
protected params: {repo: string; owner: string},
3535
protected options: {readonly: boolean} = {readonly: false},
3636
) {
37-
this._octokit = new Octokit({token});
37+
this._octokit = new Octokit({auth: token});
3838
}
3939

4040
async *query(query: Query): AsyncIterableIterator<GitHubIssueAPI> {

0 commit comments

Comments
 (0)