A tiny nodejs server that translates Heroku deploy-hooks to Slack's webhooks
Slack already has a Heroku integration builtin, but missing a small basic feature: showing the log of commits made between current and previous deploys
- deploy
heroku-slack-hooker
to a server: - we deal with heroku... so lets deploy this to heroku too:
heroku create <myhooker>
git push heroku master
suppose the url is: https://<myhooker>.herokuapp.com
2. go to Slack settings => Integrations
- add a new 'Incoming Webhook', select a channel
- copy the
Webhook URL
value. (we'll refer it as:<slack-webhook-url>
) cd
into a heroku project you want to connect with Slack and run:
heroku addons:add deployhooks:http --url https://<myhooker>.herokuapp.com/hook/<slack-webhook-url>
(this can be also done in Heorku's dashboard webui)
It should work now :)