Skip to content

a tiny server that translates Heroku deploy-hooks to Slack's webhooks

Notifications You must be signed in to change notification settings

michael-go/heroku-slack-hooker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heroku-slack-hooker

A tiny nodejs server that translates Heroku deploy-hooks to Slack's webhooks

Why?

Slack already has a Heroku integration builtin, but missing a small basic feature: showing the log of commits made between current and previous deploys

Usage

  1. deploy heroku-slack-hooker to a server:
  2. 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

  1. add a new 'Incoming Webhook', select a channel
  2. copy the Webhook URL value. (we'll refer it as: <slack-webhook-url>)
  3. 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 :)

About

a tiny server that translates Heroku deploy-hooks to Slack's webhooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published