File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
repo-scripts/changelog-generator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,17 +93,17 @@ async function getFixedIssueLink(
93
93
repo : string
94
94
) : Promise < string > {
95
95
const { body } : { body : string } = await fetch (
96
- `https://api.github.com/repos/${ repo } /pulls/${ prNumber } ` ,
96
+ `https://api.github.com/repos/${ repo } /pulls/${ prNumber } ?access_token= ${ process . env . GITHUB_TOKEN } ` ,
97
97
{
98
98
method : 'GET'
99
99
}
100
100
) . then ( data => data . json ( ) ) ;
101
+ console . log ( body , repo , prNumber ) ;
101
102
102
103
const match = fixedIssueRegex . exec ( body ) ;
103
104
if ( ! match ) {
104
105
return '' ;
105
106
}
106
-
107
107
const issueNumber = match [ 3 ] ;
108
108
return `Fixed [issue #${ issueNumber } ](https://github.com/firebase/firebase-js-sdk/issues/${ issueNumber } )` ;
109
109
}
You can’t perform that action at this time.
0 commit comments