Just for fun

Why are we hiding from the police dad? They use vi son, we use emacs.

Setting IRC gerrit bot for LibreOffice project

LibreOffice project is migrating currently to gerrit code review system. While gerrit provides mail channel out of the box, to install IRC gerrit bot to get notified on all or some gerrit events you are on your own. Thankfully OpenStack project comes to rescue, they have created and extracted simple yet very powerful multi project and multi channel gerritbot. It has 3 prerequisites:

  • python-daemon
  • python-yaml
  • irc

To be configured it needs two files: one for gerrit and IRC configuration and one for mapping of multiple IRC channels to gerrit events. Sample for gerritbot.cfg file:


[ircbot]
 nick=myIRCgerritBot
 pass=
 server=irc.freenode.net
 port=6667
 channel_config=/home/gerrit2/bot/channel.yaml

[gerrit]
 user=gerritbot
 key=/home/gerrit2/.ssh/id_rsa
 host=gerrit.libreoffice.org
 port=29418

Continue reading