From 329f602f6185592f974135cce2db80c7cc570cd6 Mon Sep 17 00:00:00 2001 From: "Justin W. Flory" Date: Tue, 19 Mar 2019 17:46:04 -0400 Subject: [PATCH] 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). --- roles/fedmsg/irc/templates/ircbot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/fedmsg/irc/templates/ircbot.py b/roles/fedmsg/irc/templates/ircbot.py index 850280397b..04fa154878 100644 --- a/roles/fedmsg/irc/templates/ircbot.py +++ b/roles/fedmsg/irc/templates/ircbot.py @@ -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)).)*$'], ), ),