Skip to content

Commit 1718ace

Browse files
committed
Improves logging
1 parent 2b8c69a commit 1718ace

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/checkForHttpStatusCodesUpdate.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ const checkForUpdate = async ( { github, core, context, dryRun } ) => {
2121
return;
2222
}
2323
*/
24+
log.warning( 'HTTP status codes list is outdated!' );
25+
2426
const existingGithubIssues = await searchForExistingGithubIssue( { lastUpdatedDate, github, context } );
2527

2628
if ( existingGithubIssues.total_count === 0 ) {
2729
const newIssue = await createNewGithubIssue( { httpStatusCodes, diffWithLastUsedVersion, github, context, dryRun } );
2830
log.info( `Created issue #${newIssue.number}: ${newIssue.html_url}`);
2931
}
3032
else if ( existingGithubIssues.total_count === 1 ) {
31-
log.info( 'HTTP status codes are still up to date.' );
33+
log.info( 'An issue already exists for this update.' );
3234
}
3335
else {
3436
log.warning( `Multiple issues exist for the HTTP status code update from ${lastUpdatedDate}:\n${ JSON.stringify( existingGithubIssues, undefined, 4 ) }` );

0 commit comments

Comments
 (0)