2016-04-11

Wikibugs added to category

← Older revision

Revision as of 00:41, 11 April 2016

Line 1:

Line 1:

+

{{DISPLAYTITLE:wikibugs}}

+

'''wikibugs''' is an IRC bot that idles in the [irc://freenode/wikimedia-dev #wikimedia-dev] development channel (and others) on the freenode IRC network.

+

+

== Functions ==

+

The bot polls the phabricator API and posts changes to tasks into various IRC channels.

+

+

* wikibugs.py: Runs as <code>wb2-phab</code> and polls the API, and inserts all task events into a redis queue

+

* redis2irc.py: Runs as <code>wb2-irc</code>, reads from the redis-queue, and notifies various channels.

+

** redis2stdout.py is useful when debugging if you don't want to have to connect to IRC all the time.

+

+

== Source ==

+

The source for wikibugs can be found in Git: https://git.wikimedia.org/summary/labs%2Ftools%2Fwikibugs2 (incl. the [https://git.wikimedia.org/blob/labs%2Ftools%2Fwikibugs2/HEAD/channels.yaml channel list]). <small>([https://github.com/wikimedia/labs-tools-wikibugs2/ github mirror])</small>

+

== Deploying changes ==

== Deploying changes ==

Everything is deployed via [http://www.fabfile.org/ fabric].

Everything is deployed via [http://www.fabfile.org/ fabric].

Line 5:

Line 18:

* <code>fab pull</code>

* <code>fab pull</code>

** May take up to 60 seconds to notice the change.

** May take up to 60 seconds to notice the change.



** Jenkins should do this automatically once the change is merged.

If you need to restart the phabricator listener:

If you need to restart the phabricator listener:

Line 15:

Line 27:

Each action should cause a message to be !log'd in #wikimedia-labs.

Each action should cause a message to be !log'd in #wikimedia-labs.

+

+

== Configuring channels ==

+

Update channels.yaml with the channel name and project name. Project names can be regular expressions and are case insensitive.

+

+

== Help ==

+

Find any of the following friendly people on IRC and they should be able to help you out:

+

* legoktm

+

* valhallasw

+

+

The list of people who have access to the bot can be found [https://tools.wmflabs.org/?tool=wikibugs here].

+

+

== See also ==

+

* [[m:wm-bot|wm-bot]]

+

+

[[Category:IRC bot]]

Show more