@@ -59,8 +59,8 @@ if (repoURLMatch == null) {
59
59
const [ , githubOrg , githubRepo ] = repoURLMatch ;
60
60
61
61
getChangeLog ( )
62
- . then ( changelog => process . stdout . write ( changelog ) )
63
- . catch ( error => console . error ( error ) ) ;
62
+ . then ( ( changelog ) => process . stdout . write ( changelog ) )
63
+ . catch ( ( error ) => console . error ( error ) ) ;
64
64
65
65
function getChangeLog ( ) {
66
66
const { version } = packageJSON ;
@@ -76,8 +76,8 @@ function getChangeLog() {
76
76
77
77
const date = exec ( 'git log -1 --format=%cd --date=short' ) ;
78
78
return getCommitsInfo ( commitsList . split ( '\n' ) )
79
- . then ( commitsInfo => getPRsInfo ( commitsInfoToPRs ( commitsInfo ) ) )
80
- . then ( prsInfo => genChangeLog ( tag , date , prsInfo ) ) ;
79
+ . then ( ( commitsInfo ) => getPRsInfo ( commitsInfoToPRs ( commitsInfo ) ) )
80
+ . then ( ( prsInfo ) => genChangeLog ( tag , date , prsInfo ) ) ;
81
81
}
82
82
83
83
function genChangeLog ( tag , date , allPRs ) {
@@ -86,8 +86,8 @@ function genChangeLog(tag, date, allPRs) {
86
86
87
87
for ( const pr of allPRs ) {
88
88
const labels = pr . labels . nodes
89
- . map ( label => label . name )
90
- . filter ( label => label . startsWith ( 'PR: ' ) ) ;
89
+ . map ( ( label ) => label . name )
90
+ . filter ( ( label ) => label . startsWith ( 'PR: ' ) ) ;
91
91
92
92
if ( labels . length === 0 ) {
93
93
throw new Error ( `PR is missing label. See ${ pr . url } ` ) ;
@@ -153,12 +153,12 @@ function graphqlRequestImpl(query, variables, cb) {
153
153
} ,
154
154
} ) ;
155
155
156
- req . on ( 'response' , res => {
156
+ req . on ( 'response' , ( res ) => {
157
157
let responseBody = '' ;
158
158
159
159
res . setEncoding ( 'utf8' ) ;
160
- res . on ( 'data' , d => ( responseBody += d ) ) ;
161
- res . on ( 'error' , error => resultCB ( error ) ) ;
160
+ res . on ( 'data' , ( d ) => ( responseBody += d ) ) ;
161
+ res . on ( 'error' , ( error ) => resultCB ( error ) ) ;
162
162
163
163
res . on ( 'end' , ( ) => {
164
164
if ( res . statusCode !== 200 ) {
@@ -187,7 +187,7 @@ function graphqlRequestImpl(query, variables, cb) {
187
187
} ) ;
188
188
} ) ;
189
189
190
- req . on ( 'error' , error => resultCB ( error ) ) ;
190
+ req . on ( 'error' , ( error ) => resultCB ( error ) ) ;
191
191
req . write ( JSON . stringify ( { query, variables } ) ) ;
192
192
req . end ( ) ;
193
193
}
@@ -271,7 +271,7 @@ function commitsInfoToPRs(commits) {
271
271
const prs = { } ;
272
272
for ( const commit of commits ) {
273
273
const associatedPRs = commit . associatedPullRequests . nodes . filter (
274
- pr => pr . repository . nameWithOwner === `${ githubOrg } /${ githubRepo } ` ,
274
+ ( pr ) => pr . repository . nameWithOwner === `${ githubOrg } /${ githubRepo } ` ,
275
275
) ;
276
276
if ( associatedPRs . length === 0 ) {
277
277
const match = / \( # ( [ 0 - 9 ] + ) \) $ / m. exec ( commit . message ) ;
0 commit comments