Automatically creates the production deployment PRs for Notify on notification-manifests.
Edit the index.js file as needed and then run the build command to
produce a single artifact in the dist
folder.
npm run build
To run the PR-bot locally, first create an API token in GitHub with a scope defined on both repository access and workflow access. The PR bot script only need these.
Once the token is created, you will need to provide it to the script's environment when executing it:
TOKEN="${YOUR_TOKEN}" node index.js
Alternatively, you can also export the variable if you have to execute the script multiple times in your current shell session:
export TOKEN="${YOUR_TOKEN}"
node index.js
Note that in production we fetch the auth token https://github.com/organizations/cds-snc/settings/installations/17812835 (CDS GitHub admin access required)