ircbot.py: Finer filtering on #fedora-diversity fedmsg filters

This change specifically changes the #fedora-diversity fedmsg IRC bot
only listen for regex matching "diversity" on new Pagure issues, pull
requests, and comments. This makes the noise easier to read and
hopefully more relevant (a lot of things get pulled in with this filter
as it is today).
This commit is contained in:
Justin W. Flory 2019-03-19 17:46:04 -04:00 committed by Kevin Fenzi
parent 16b791a146
commit 329f602f61

View file

@ -467,8 +467,14 @@ config = dict(
nickname='fm-diversity',
{% endif %}
channel='#fedora-diversity',
# If the word diversity appears in any message, forward it.
# If the word diversity appears in a new Pagure issue, pull
# request, or comment, forward it.
filters=dict(
topic=['^((?!('
'pagure.pull-request.new|'
'pagure.issue.new|'
'pagure.issue.comment.added)).)*$',
],
body=['^((?!(diversity|Diversity)).)*$'],
),
),