Skip to content

voanhduy1512/slackbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Slackbot callback url

Codeship Status for voanhduy1512/slackbot

http://slackbot.anhduy.io/callback/[:service]?room=:room&botname=:botname&is_channel=:is_channel&is_person=:is_person

Options explain

  • service -- gitlab or heroku
  • room -- channel, person, private room ... name without @ or #
  • botname -- this is your bot name, call it whatever you want
  • is_channel -- optional, if room is a channel, make it true; otherwise, don't pass it in url
  • is_person -- optional, if room is a person, make it true; otherwise, don't pass it in url

Gitlab

First go to your gitlab project setting page -> Web Hooks

Input the url like above guide

Example:

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

heroku addons:add deployhooks:http --url=[:url]
Example:

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published