SyntaxHighlighter

Wednesday, September 10, 2014

Heroku Hipchat deploy hook

If you have a heroku account and want to post your latest update to HipChat, here's something to go by:

First you need an Auth Token, you get this in Hipchat, you need to be a Group Admin.  Just click on the Group Admin tab and select 'API'.

Then, create a 'notification' token.  Make sure it is an API1 (not API2) token.

heroku addons:add deployhooks:hipchat \
    --auth_token=YOUR_AUTH_TOKEN \
    --room="ROOM_NAME" \
    --message="{{user}} deployed {{app}}\r\n{{url}}\r\n{{git_log}}" \
    --app=APP_NAME


No comments:

Post a Comment