File tree 1 file changed +7
-3
lines changed
repo-scripts/changelog-generator 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -89,15 +89,19 @@ const changelogFunctions: ChangelogFunctions = {
89
89
}
90
90
} ;
91
91
92
- const fixedIssueRegex = / ( c l o s e | c l o s e s | c l o s e d | f i x | f i x e s | f i x e d | r e s o l v e | r e s o l v e s | r e s o l v e d ) [ ^ \s ] * ( # | i s s u e s \/ ) ( [ \d ] + ) / i;
92
+ const fixedIssueRegex =
93
+ / ( c l o s e | c l o s e s | c l o s e d | f i x | f i x e s | f i x e d | r e s o l v e | r e s o l v e s | r e s o l v e d ) [ ^ \s ] * ( # | i s s u e s \/ ) ( [ \d ] + ) / i;
93
94
async function getFixedIssueLink (
94
95
prNumber : number ,
95
96
repo : string
96
97
) : Promise < string > {
97
98
const { body } : { body : string } = await fetch (
98
- `https://api.github.com/repos/${ repo } /pulls/${ prNumber } ?access_token= ${ process . env . GITHUB_TOKEN } ` ,
99
+ `https://api.github.com/repos/${ repo } /pulls/${ prNumber } ` ,
99
100
{
100
- method : 'GET'
101
+ method : 'GET' ,
102
+ headers : {
103
+ 'Authorization' : `Bearer ${ process . env . GITHUB_TOKEN } `
104
+ }
101
105
}
102
106
) . then ( data => data . json ( ) ) ;
103
107
You can’t perform that action at this time.
0 commit comments