Skip to content

Commit b1bec00

Browse files
committed
Re-enables checks after testing
1 parent 1718ace commit b1bec00

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

.github/checkForHttpStatusCodesUpdate.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ const checkForUpdate = async ( { github, core, context, dryRun } ) => {
1515
const httpStatusCodes = await fetchHttpStatusCodesList();
1616
const lastUpdatedDate = httpStatusCodes.lastUpdated;
1717
const diffWithLastUsedVersion = await getDiffWithLastUsedVersion( httpStatusCodes.httpStatusCodesList );
18-
/*
1918
if ( !diffWithLastUsedVersion ) {
2019
log.info( 'HTTP status codes list is still up to date' );
2120
return;
2221
}
23-
*/
2422
log.warning( 'HTTP status codes list is outdated!' );
2523

2624
const existingGithubIssues = await searchForExistingGithubIssue( { lastUpdatedDate, github, context } );
@@ -93,11 +91,9 @@ const createNewGithubIssue = async ( { httpStatusCodes, diffWithLastUsedVersion,
9391
const getDiffWithLastUsedVersion = async ( httpStatusCodeList ) => {
9492
const pathToLastUsedVersion = path.resolve( './.github/http-status-codes.txt' );
9593
const lastUsedVersion = await fs.readFile( pathToLastUsedVersion, { encoding: 'utf-8' } );
96-
/*
9794
if ( lastUsedVersion === httpStatusCodeList ) {
9895
return null;
9996
}
100-
*/
10197
const patch = diff.createPatch( 'http-status-codes.txt', lastUsedVersion, httpStatusCodeList );
10298
return patch;
10399
};

0 commit comments

Comments
 (0)