This mini-project aims to help automate status cross-checks for the WordPress.org Codex to DevHub migration efforts.
Simply put, it fetches the migration Google Sheet and checks each Codex link for a redirect to DevHub. If there are inconsistencies between the sheet and the actual live status of the pages, it can update them in the sheet.
- Set up a Google developer project at https://console.developers.google.com/
- Activate the Google Sheets API
- Go to Credentials and set up a Service account
- Take the email address of the Service account and give it access in your Google Sheet via Sharing
- Download the resulting JSON with credentials to this project under credentials/
- Duplicate
config.js.sample
toconfig.js
and update the credentials file path - Run
retrieve-gsheet.js
,verify-functions.js
and finallyupdate-sheet.js
(the latter only if you've given write permissions to the Service Account and you'd like it to update the status of the functions in the sheet) in this order