IRC bot that reports on Gerrit events
Go to file
Eric Fried 981dfa50fa Support regexes in channel config yaml
With this change, the channel config yaml file can now be configured to
support regular expressions.

Any value in any section may be prefixed with `^` to denote that it is
to be treated as a regular expression [1].  Start and end ^anchors$ are
implicit (so add `.*` if needed).

For example, given the following paragraph in the channel config yaml:

openstack-foo:
  events:
    - patchset-created
    - change-merged
  projects:
    - openstack/foo
    - ^openstack/foo-.*
    - openstack/oslo.foo
  branches:
    - master
    - ^stable/(newton|ocata|pike)

...messages will be posted to #openstack-foo for events coming in from
project openstack/foo, openstack/foo-one, openstack/foo-bar, etc.; on
branches master, stable/newton, stable/ocata, or stable/pike.

Behavior is unchanged for values not prefixed with `^`.

[1] This paradigm cribbed from gerrit's search functionality:
https://review.openstack.org/Documentation/user-search.html#path

Change-Id: I97cb8faa72600bd1bd9792bb6bb59a3b652ec389
2018-02-17 11:35:39 -08:00
doc/source Support regexes in channel config yaml 2018-02-17 11:35:39 -08:00
gerritbot Support regexes in channel config yaml 2018-02-17 11:35:39 -08:00
.gitignore Add unit test framework and one unit test 2018-02-05 12:59:39 -08:00
.gitreview Updated .gitreview location 2012-12-16 10:40:29 -08:00
.stestr.conf Add more unit tests including testing of Gerrit() class 2018-02-17 11:28:38 -08:00
.zuul.yaml Add unit test framework and one unit test 2018-02-05 12:59:39 -08:00
LICENSE Add Apache 2 license file. 2012-08-02 16:37:04 -07:00
MANIFEST.in Migrate to pbr. 2013-06-02 10:37:00 -04:00
README.rst Replace ci.o.o links with docs.o.o/infra 2015-05-14 21:38:16 +00:00
gerritbot.init Install gerritbot to /usr/local/bin. 2012-07-31 14:06:48 -07:00
requirements.txt Removed unreasonable banning of newer pbr versions 2017-03-30 18:52:10 +01:00
setup.cfg Replace ci.o.o links with docs.o.o/infra 2015-05-14 21:38:16 +00:00
setup.py Update to modern pbr 2015-02-27 22:14:00 -05:00
test-requirements.txt Add unit test framework and one unit test 2018-02-05 12:59:39 -08:00
tox.ini Add unit test framework and one unit test 2018-02-05 12:59:39 -08:00

README.rst

GerritBot

Gerritbot is an IRC bot that will notify IRC channels of Gerrit events.

To install:

$ sudo python setup.py install

Online documentation:

Developers

Report bugs:

Browse code:

Clone:

Submit patches via Gerrit at:

More details on how you can contribute is available on our wiki at:

License

Copyright 2011 OpenStack, LLC Copyright 2012-2013 Hewlett-Packard Development Company, L.P.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.