A Pull Request Hook that comments on pull requests from users who are contributing to the repository for the first time
- Fill in your credentials in
app.properties
- Create a heroku account
- Create a heroku app:
heroku create
- Deploy the code:
git push heroku master
- Ensure that atleast one instance of the app is running:
heroku ps:scale web=1
- List your app with:
heroku apps
- The service is now running at
<heroku-app-name>.heroku.com
- Go to the settings page of the repository of interest.
- Navigate to
WebHooks and Services
- Click on
Add WebHook
- For
Payload URL
enter<heroku-app-name>.heroku.com/v1/PREvent
- Choose
Let me select Individual Events
and choose thePull Request Event
- Add Webhook
- Get Someone to Open a PR on your repository :-)
- Install Docker and Compose. OSX users can skip above two and install Docker Toolbox
- Move to this directory, and run
docker-compose up web
. It will install all the requirements on the first run - Follow steps 8 through 14 in the previous list. In the
Payload URL
section of theAdd webhook
page of your Github repo settings, add<your-public-ip:5000|Public-URL>/v1/PREvent
- For development purposes, you can use Ngrok to set up a temporary local tunnel and make your local server accessible via a public URL.
- Customize the
message
inapp.properties
- Customize
new-users
inapp.properties
. When set to true, a comment is only made on a PR made by a new contributor.
Submit a PR to this repository