Skip to content

Commit 4a012ff

Browse files
committed
Improves output printing
1 parent e70752d commit 4a012ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/checkForHttpStatusCodesUpdate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +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}:\n${ JSON.stringify( existingGithubIssues ) }` );
34+
log.warning( `Multiple issues exist for the HTTP status code update from ${lastUpdatedDate}:\n${ JSON.stringify( existingGithubIssues, undefined, 4 ) }` );
3535
}
3636
}
3737
catch ( error ) {
@@ -80,7 +80,7 @@ const createNewGithubIssue = async ( { httpStatusCodes, diffWithLastUsedVersion,
8080
};
8181

8282
if ( dryRun ) {
83-
log.info( `Would create issue:\n${ JSON.stringify( newIssue ) }` );
83+
log.info( `Would create issue:\n${ JSON.stringify( newIssue, null, 4 ) }` );
8484
return { total_count: 1, html_url: context.repo.issues_url };
8585
}
8686

0 commit comments

Comments
 (0)