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:
parent
16b791a146
commit
329f602f61
1 changed files with 7 additions and 1 deletions
|
@ -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)).)*$'],
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue