Re: [PATCH] improve fedmsg rules for g11n

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
  I have expected few amount of messages but actually they are very much. Here I am proposing to minimize the message flow to irc channel.
Please review the attached patch and if it looks good then apply.

Thank you,
Parag.
From 636dfb78e5223231f1f55a46fef59ec7a81abd9f Mon Sep 17 00:00:00 2001
From: Parag A Nemade <pnemade@xxxxxxxxxxxxxxxxx>
Date: Fri, 14 Oct 2016 17:34:22 +0530
Subject: [PATCH] Another improvement to g11n bot

Signed-off-by: Parag A Nemade <pnemade@xxxxxxxxxxxxxxxxx>
---
 roles/fedmsg/irc/templates/ircbot.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/roles/fedmsg/irc/templates/ircbot.py b/roles/fedmsg/irc/templates/ircbot.py
index 83f0fce..80e0158 100644
--- a/roles/fedmsg/irc/templates/ircbot.py
+++ b/roles/fedmsg/irc/templates/ircbot.py
@@ -253,8 +253,11 @@ config = dict(
             nickname='fedmsg-g11n',
             {% endif %}
             channel='#fedora-g11n',
-            # If the word i18n/g11n appears in any message, forward it.
+            # If the word i18n/g11n appears in any of below topic message, forward it.
             filters=dict(
+                topic=[
+                    '^((?!(trac|pagure|planet|mailman|meetbot\.meeting\.complete)).)*$',
+                ],
                 body=['^((?!(i18n|g11n)).)*$'],
             ),
         ),
-- 
2.9.3

_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux