Skip to content

Small script to make deploy to production PRs for Notify

License

Notifications You must be signed in to change notification settings

cds-snc/notification-pr-bot

Repository files navigation

PR-bot

Automatically creates the production deployment PRs for Notify on notification-manifests.

Development

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

Local Environment

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)

About

Small script to make deploy to production PRs for Notify

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published