The prdeploy API has webhooks to allow GitHub to pass events, as well as the GraphQL API for displaying the web page.
gh_app_key.pem in this root folder..env file similar to .env.example and set actual values.npm install.npm run webhook.npm start.With your server running, you can now create a pull request on any repository that
your app can access. GitHub will emit a pull_request.opened event and will deliver
the corresponding Webhook payload to your server.
The server in this example listens for pull_request.opened events and acts on
them by creating a comment on the pull request, with the message in message.md,
using the octokit.js rest methods.
Before you check in code, make sure to run npm run checks to verify everything is building, linting, and tested properly.
To keep things simple, this example reads the GITHUB_APP_PRIVATE_KEY from the
environment. A more secure and recommended approach is to use a secrets management system
like Vault, or one offered
by major cloud providers:
AWS Secrets Manager,
Content type
Image
Digest
sha256:a434f402e…
Size
411.6 MB
Last updated
10 months ago
docker pull greggbjensen/prdeploy-webhooks