File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
repo-scripts/changelog-generator Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -89,15 +89,19 @@ const changelogFunctions: ChangelogFunctions = {
8989 }
9090} ;
9191
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;
9394async function getFixedIssueLink (
9495 prNumber : number ,
9596 repo : string
9697) : Promise < string > {
9798 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 } ` ,
99100 {
100- method : 'GET'
101+ method : 'GET' ,
102+ headers : {
103+ 'Authorization' : `Bearer ${ process . env . GITHUB_TOKEN } `
104+ }
101105 }
102106 ) . then ( data => data . json ( ) ) ;
103107
You can’t perform that action at this time.
0 commit comments