[zorg] r375188 - Added support for github author names.

Galina Kistanova via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 16:18:03 PDT 2019


Author: gkistanova
Date: Thu Oct 17 16:18:02 2019
New Revision: 375188

URL: http://llvm.org/viewvc/llvm-project?rev=375188&view=rev
Log:
Added support for github author names.

Modified:
    zorg/trunk/zorg/buildbot/util/ConfigEmailLookup.py

Modified: zorg/trunk/zorg/buildbot/util/ConfigEmailLookup.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/util/ConfigEmailLookup.py?rev=375188&r1=375187&r2=375188&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/util/ConfigEmailLookup.py (original)
+++ zorg/trunk/zorg/buildbot/util/ConfigEmailLookup.py Thu Oct 17 16:18:02 2019
@@ -39,6 +39,12 @@ class ConfigEmailLookup(buildbot.util.Co
 
   def getAddress(self, name):
 
+    # For a multiple types of pollers/schedulers we can get an email address or
+    # a fully qualified name/email in 'name' parameter. Check and return name if it
+    # contains email address.
+    if name is not None and '@' in name:
+        return name
+
     try:
 
       if (datetime.utcnow() - self.time_checked) >= timedelta(minutes=1):




More information about the llvm-commits mailing list