We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49b0406 commit 28bdd8eCopy full SHA for 28bdd8e
repo-scripts/changelog-generator/index.ts
@@ -95,9 +95,12 @@ async function getFixedIssueLink(
95
repo: string
96
): Promise<string> {
97
const { body }: { body: string } = await fetch(
98
- `https://api.github.com/repos/${repo}/pulls/${prNumber}?access_token=${process.env.GITHUB_TOKEN}`,
+ `https://api.github.com/repos/${repo}/pulls/${prNumber}`,
99
{
100
- method: 'GET'
+ method: 'GET',
101
+ headers: {
102
+ 'Authorization': `Bearer ${process.env.GITHUB_TOKEN}`
103
+ }
104
}
105
).then(data => data.json());
106
0 commit comments