- Fill in the config vars with your GitHub credencials and repository info
- Ensure you scale up the worker dyno
heroku ps:scale worker:1 -a app-name - Run
heroku addons:open postmark -a app-name1. Click through the wizard until you get to Get Started with your New Server 1. Select Process Inbound Mail 1. Make note of the inbound email address 1. Enterhttps://yourapp.herokuapp.com/hooks/postmarkfor the webhook URL - Send an email to the inbound address provided by PostMark
Any emails sent to the POSTMARK_INBOUND_ADDRESS will automatically be converted into a new GitHub issue in your repository.
You can always retrieve the email address to submit issues to by running
heroku config:get POSTMARK_INBOUND_ADDRESS
You also might want to create an easily to remember email alias, rather than the random address Postmark provides. Postmark has instructions to configure an alias using Gmail or a Custom Domain.
You can test the server locally by starting it with
python webapp.py
You can use curl to simulate calling the webhook
curl -H "Content-Type: application/json" -X POST http://localhost:5000/hooks/postmark -d '{"Subject": "test subject", "TextBody": "A long description"}'
The worker can be run with
rqworker
