Slackbot callback url
http://slackbot.anhduy.io/callback/[:service]?room=:room&botname=:botname&is_channel=:is_channel&is_person=:is_person
service
--gitlab
orheroku
room
-- channel, person, private room ... name without @ or #botname
-- this is your bot name, call it whatever you wantis_channel
-- optional, ifroom
is a channel, make it true; otherwise, don't pass it in urlis_person
-- optional, ifroom
is a person, make it true; otherwise, don't pass it in url
First go to your gitlab project setting page -> Web Hooks
Input the url like above guide
http://slackbot.anhduy.io/callback/gitlab?room=saigon&is_channel=:is_channel
=> gitlab commit will post to channel saigon
http://slackbot.anhduy.io/callback/gitlab?room=taxisg
=> gitlab commit will post to private group taxisg
heroku addons:add deployhooks:http --url=[:url]
Post heroku deploy to channel
heroku addons:add deployhooks:http --url=http://slackbot.anhduy.io/callback/heroku?room=saigon&is_channel=true
Post heroku deploy to private group
heroku addons:add deployhooks:http --url=http://slackbot.anhduy.io/callback/heroku?room=taxisg