Commit Graph

7 Commits

Author SHA1 Message Date
Javier Pena 079396a691 Switch to stestr, declare Python 3.7 compatibility
Since [1] the project supports Python 3.7. It is also a good idea
to move away from ostestr to stestr, as all OpenStack projects did
already.

[1] - https://review.opendev.org/715634

Change-Id: I68bb89e441cba373f3c781ec0f4418c3969c8f85
2020-05-25 11:21:52 +02:00
Monty Taylor 29ff7b3bec Update for python3
We're gonna build an image in the next patch, so let's fix things
up to be python3 ready.

Change-Id: Ia0e1ecf75e6593a7e7be9dc962a1e2f3dc23fe27
2020-03-28 11:46:39 -05:00
Steve Baker e3879412b7 Fix event comment-added
This change fixes the comment-added message sending to filter by the
event type which gerrit is now sending (Verified and Code-Review)

Adding the following to project-config/gerritbot/channels.yaml will
restore the previous functionality of sending messages for Verified,
Code-Review +2 and -2:

  events:
    - comments-added
    - x-vrif-minus-2
    - x-vrif-plus-2
    - x-crvw-minus-2
    - x-crvw-plus-2

Additionally, specifying 'comments-added' will send a message for
*every* gerrit comment, so the only way to get messages for
x-vrif-plus-2 (for example) is to also receive a firehose of every
gerrit comment.

To make this more configurable, the event type x-all-comments has been
added, which is now required in combination with 'comments-added' to
send a message for every gerrit comment:

  events:
    - comments-added
    - x-all-comments

Change-Id: I9971e045c3416b300d1fd4683a2c145afef3d44f
2019-12-10 10:49:01 +13:00
John L. Villalovos 4658934d22 Add unit test framework and one unit test
Add an initial unit test framework and one unit test. This way we can
ask people to add unit tests when they contribute code.

Change-Id: If52976e1992945a8e38af3cbad5b5f4389922d4c
2018-02-05 12:59:39 -08:00
Monty Taylor 4851742244 Update to modern pbr
d2to1 hasn't been a thing in a VERY long time. We have to update hacking
as well beause the hacking this depends on also depends on a very old
pbr.

Change-Id: I1bf97a5fe1c1ae10f951510c2b95d43b4e9b8b19
2015-02-27 22:14:00 -05:00
Monty Taylor d8969646f7 Remove dependency on distribute.
Change-Id: Id22f552dd67048b7f5b1f36d01dfe643e0a31e60
2013-07-05 21:12:44 -04:00
Monty Taylor 71448ad1e3 Renamed requirements files to standard names.
Change-Id: I439587c38c012653d6313e1860c9b8612a58d544
2013-06-02 11:20:42 -04:00