Skip to content

Commit 28bdd8e

Browse files
committed
prettier?
1 parent 49b0406 commit 28bdd8e

File tree

1 file changed

+5
-2
lines changed
  • repo-scripts/changelog-generator

1 file changed

+5
-2
lines changed

repo-scripts/changelog-generator/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,12 @@ async function getFixedIssueLink(
9595
repo: string
9696
): Promise<string> {
9797
const { body }: { body: string } = await fetch(
98-
`https://api.github.com/repos/${repo}/pulls/${prNumber}?access_token=${process.env.GITHUB_TOKEN}`,
98+
`https://api.github.com/repos/${repo}/pulls/${prNumber}`,
9999
{
100-
method: 'GET'
100+
method: 'GET',
101+
headers: {
102+
'Authorization': `Bearer ${process.env.GITHUB_TOKEN}`
103+
}
101104
}
102105
).then(data => data.json());
103106

0 commit comments

Comments
 (0)