Per request from our customers we’ve added support for Gitter.im, the Github-centric chat service. And now you can build your own chat bot with Gitter.im.
What is Gitter.im?
Services like Hipchat and Campfire are popular amongst developers; however, they are designed to be generic team chat services used by all sorts of teams. Gitter.im is a little different. While it provides the general chat capabilities you would expect out of the client, it has some awesome developer-specific features you won’t find anywhere else. For example, you can setup chat rooms around repos, reference commits in your messages, and you can even include Markdown in your message.
What can you do with Gitter.im + Factor.io
Now that we’ve added support to Gitter.im this means you can integrate Gitter with the rest of your development workflow. For example, you can type in “deploy qa” in your Gitter channel for a given repo to automatically deploy the qa branch to the QA environment. Here is a Gist to do exactly that with Github and Heorku.
To get started:
- Sign up
- Click on “Service” and activate Github, Heroku, and Gitter services
- Click “Create Workflow” and select “Custom Workflow”
- In the definition paste in the contents of this gist. Replace the appropriate values. And save the repo.
- Now in the Gitter.im room you should be able to type in “deploy master” to deploy to the appropriate environment.
Cool, huh? With the Gitter.im Service integration you can received messages as well as send messages to your room. You can also specify regular expression filters in the
filter option to filter for specific matches and pull out values. In other word, you can create your own chat bot capable of pulling code form Github/BitBucket/GitLab, compiling with Jekyll/Middleman, and deploying to a server via SSH, Heroku, or BitBalloon.