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)).)*$'], ), ),