Hi, the attached patch makes a small change to ircbot.py to change the #fedora-diversity IRC bot to only listen for new Pagure tickets, pull requests, and comments. This helps reduce the noise in the IRC channel and hopefully makes the bot more useful for the team. Let me know if anyone has feedback on this patch. -- Cheers, Justin W. Flory jflory7@xxxxxxxxx
From 179d351df5545d51b35fb055ef5a933eb0aa1e0e Mon Sep 17 00:00:00 2001 From: "Justin W. Flory" <git@xxxxxx> Date: Tue, 19 Mar 2019 17:46:04 -0400 Subject: [PATCH 1/1] 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)).)*$'], ), ), -- 2.20.1
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx