http://www.youtube.com/watch?v=NST3u-GjjFw
ChatOps at GitHub
- Jesse Newland
https://speakerdeck.com/jnewland/chatops-at-github
Slide 8
Slide 8 text
http://www.youtube.com/watch?v=-LxavzqLHj8
MountainWest
RubyConf 2013
ChatOps at GitHub by
Jesse Newland
Slide 9
Slide 9 text
• Search images.
• translating languages.
• Search Youtube.
• CI (Jenkins) Notification
• Some Easy Cron Job
• The real fun happens when you add your own scripts.
• ⇔ग़⚧߄֥4DSJQU∣ἐ൞۷ݺທb
What can Hubot Do?
Slide 10
Slide 10 text
Who Use Hubot?
etc….
Slide 11
Slide 11 text
Chat room for Your Hubot
• Hubot 提供 3 種類型的 Adapter
– Official Adapter
• Shell, i.e. for use with development
• Campfire
– Third Party Adapter (next page)
– Write Your Own Adapter
Slide 12
Slide 12 text
• Third Party Adapter
Gitter IRC
Slide 13
Slide 13 text
ಠ_ಠ
Then?
How To Start ?
Slide 14
Slide 14 text
1. Environment (1)
You need a server. (or your local XD)
( 網路上⼤大部分的⽂文章會⽤用如何在 Deploy 你的 Hubot )
vi Procfile
在 Procfile 增加這⼀一⾏行:
web: bin/hubot --adapter hipchat
Slide 26
Slide 26 text
Example: Adapter 是 Slack
Slide 27
Slide 27 text
增加 hubot 的 service
https://YOUR_DOMAIN.slack.com/services
Slide 28
Slide 28 text
增加 hubot 的 service
Slide 29
Slide 29 text
configure
Slide 30
Slide 30 text
configure
Slide 31
Slide 31 text
vi bin/hubot - ex: slack
Slide 32
Slide 32 text
vi Procfile
web: bin/hubot --adapter slack
Slide 33
Slide 33 text
3. Boot your Hubot
(root@demo-server:/home/dev/mybot# bin/hubot -a hipchat)
root@demo-server:/home/dev/mybot# bin/hubot -a YOUR_ADAPTER_NAME
[Fri Nov 07 2014 00:43:52 GMT-0500 (EST)]
INFO Connecting HipChat adapter...
createCredentials() is deprecated, use tls.createSecureContext instead
[Fri Nov 07 2014 00:43:57 GMT-0500 (EST)] INFO Connected to hipchat.com as
@hubot
[Fri Nov 07 2014 00:43:57 GMT-0500 (EST)] INFO Data for hubot brain retrieved
from Redis
[Fri Nov 07 2014 00:43:59 GMT-0500 (EST)] INFO Joining
[email protected]
不同的 Adapter 吐出來的訊息不同。
Slide 34
Slide 34 text
3. Boot your Hubot
Slide 35
Slide 35 text
Boot your Hubot (ex:hipchat)
Slide 36
Slide 36 text
Boot your Hubot (ex:Slack)
• Hubot 可以佔⽤用 slackbot 這個 username
Slide 37
Slide 37 text
3. Test you Hubot
@slackbot ping
Slide 38
Slide 38 text
3. Test you Hubot
@slackbot image 正妹
Slide 39
Slide 39 text
3. Test you Hubot
@slackbot youtube 我可能不會愛你
Slide 40
Slide 40 text
3. Test you Hubot
Slide 41
Slide 41 text
3. Test you Hubot
@slackbot time
Slide 42
Slide 42 text
Install Other Hubot Scripts
• https://github.com/hubot-scripts/
Reference
• https://github.com/github/janky
• https://github.com/atmos/heaven/blob/master/doc/overview.md
• https://github.com/phoorichet/GraphMe
• https://github.com/hubot-scripts/hubot-pager-me
• http://www.larrycaiyu.com/blog/2014/01/21/
hubot_jenkins_notification/
• Automate Your Development Activities with Hubot (y)
• Beginning a journey to chatops with Hubot Posted by Ryan
Tomlinson (y)