Skip to content

Commit e70752d

Browse files
committed
Fixes output printing
1 parent cae840d commit e70752d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/checkForHttpStatusCodesUpdate.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ const checkForUpdate = async ( { github, core, context, dryRun } ) => {
3131
log.info( 'HTTP status codes are still up to date.' );
3232
}
3333
else {
34-
log.warning( `Multiple issues exist for the HTTP status code update from ${lastUpdatedDate}` );
35-
log.debug( existingGithubIssues );
34+
log.warning( `Multiple issues exist for the HTTP status code update from ${lastUpdatedDate}:\n${ JSON.stringify( existingGithubIssues ) }` );
3635
}
3736
}
3837
catch ( error ) {
@@ -72,7 +71,7 @@ const createNewGithubIssue = async ( { httpStatusCodes, diffWithLastUsedVersion,
7271
owner: context.repo.owner,
7372
repo: context.repo.repo,
7473
title: `${issueTitleBase} ${httpStatusCodes.lastUpdatedDate}`,
75-
body: `The HTTP status codes list has been updated on ${httpStatusCodes.lastUpdatedDate}.` + '\n' +
74+
body: `The HTTP status codes list has been updated on ${httpStatusCodes.lastUpdatedDate}. ` + '\n' +
7675
'See https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml' + '\n\n' +
7776
'## Diff ##' + '\n' +
7877
'```diff' + '\n' +
@@ -81,7 +80,7 @@ const createNewGithubIssue = async ( { httpStatusCodes, diffWithLastUsedVersion,
8180
};
8281

8382
if ( dryRun ) {
84-
log.info( 'Would create issue:\n', JSON.stringify( newIssue ) );
83+
log.info( `Would create issue:\n${ JSON.stringify( newIssue ) }` );
8584
return { total_count: 1, html_url: context.repo.issues_url };
8685
}
8786

0 commit comments

Comments
 (0)