Added support for github author names.
git-svn-id: https://llvm.org/svn/llvm-project/zorg/trunk@375188 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/zorg/buildbot/util/ConfigEmailLookup.py b/zorg/buildbot/util/ConfigEmailLookup.py
index d7e8274..4fb9022 100644
--- a/zorg/buildbot/util/ConfigEmailLookup.py
+++ b/zorg/buildbot/util/ConfigEmailLookup.py
@@ -39,6 +39,12 @@
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):