PR-Bot is an event driven service that listens to GitHub webhooks and performs actions based on the events received.
In order to run the PR-Bot locally, you will need to setup a webhook proxy to receive the GitHub webhooks and forward them to your local service. You can use smee.io for this purpose.
- https://smee.io/ to setup the webhook proxy.
- Setup the webhook in the github repository with the smee.io url with the pull request scopes. NOTE: Make sure that the
content-type
is set toapplication/json
in the webhook settings. - Get your AWS credentials.
- Run the pr-bot service locally with
make run
. - In a separate terminal run
smee -u SMEE_CHANNEL_URL --target http://localhost:9090/v1/webhook
.