Skip to content

Commit ed8f822

Browse files
committed
fixed auth token in fetches
1 parent be8af5c commit ed8f822

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/fetch-ci-pr-data.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function fetch_pull_requests() {
4646
const response = await fetch(prs_url, {
4747
headers: {
4848
Accept: "application/vnd.github+json",
49-
Authorization: TOKEN,
49+
Authorization: `token ${TOKEN}`,
5050
"X-GitHub-Api-Version": "2022-11-28",
5151
},
5252
});
@@ -66,7 +66,7 @@ async function fetch_main_branch() {
6666
const response = await fetch(main_branch_url, {
6767
headers: {
6868
Accept: "application/vnd.github+json",
69-
Authorization: TOKEN,
69+
Authorization: `token ${TOKEN}`,
7070
"X-GitHub-Api-Version": "2022-11-28",
7171
},
7272
});
@@ -89,7 +89,7 @@ function get_check_data(pr) {
8989
const response = await fetch(checks_url, {
9090
headers: {
9191
Accept: "application/vnd.github+json",
92-
Authorization: TOKEN,
92+
Authorization: `token ${TOKEN}`,
9393
"X-GitHub-Api-Version": "2022-11-28",
9494
},
9595
});

0 commit comments

Comments
 (0)