Send GitHub Commits to XMPP Chat Rooms

December 4, 2008

We’re in the process of switching our development workflow from Subversion to git. As part of this transition, we wanted to put notifications in our development group chat room. GitHub has already standardized Web hooks and provides integration with IRC and other services. I decided to implement an XMPP bot that listened for these HTTP push notifications and send commit information to the room.

The code is available in my commitbot repository. Thanks to Twisted and Wokkel this was surprisingly simple and occupies less than a hundred lines of code. Commitbot will send both plain text and XHTML-IM formatted messages. The plain ones look like this:

gitbot-plain.png

The next part of this project is to implement a git hook script that can send these notifications just like GitHub does.

:EXTENDED:

Send GitHub Commits to XMPP Chat Rooms - December 4, 2008 - Jack Moffitt