Hi folks,

I was too tired of semi-working unstable random IRC services that
provides IRC commit messages from github to your channel, so I created
a simple plugin to wm-bot which can handle that now.

Features:

* It's incredibly easy to setup (10 seconds setup)
* Requires no registration
* Pretty stable (running on wikimedia labs)
* Self-service - everyone can configure the bot as they want directly from IRC

How it works in few steps:

1) Get wm-bot to your channel (just join #wm-bot and type @add #somechannel
2) type @github+ <full name of repository> for example for repository
http://github.com/benapetr/test it would be @github+ benapetr/test
3) Add web hook in github settings of your repository to
http://wm-bot.wmflabs.org/github/index.php

That's all

Example output:
(10:41:00) <wm-bot> GitHub [benapetr/test-wm]  benapetr pushed 1
commits: https://github.com/benapetr/test-wm/compare/87ad2018cae6...f5b2131c10ad
(10:41:00) <wm-bot> GitHub [benapetr/test-wm]  commit by benapetr
(Petr Bena) 
https://github.com/benapetr/test-wm/commit/f5b2131c10ad3bb1fe902db911ed01421ce6effe
test

Formatting kind of suck, but you can fix it! Handler is written in
PHP: 
https://github.com/benapetr/wikimedia-bot/blob/master/src/WMBot.Plugins/GitHub/listener/github.php

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to