diff -r 1818d56c8ff5 -r a2fe9ba3041a configfile.py --- a/configfile.py Mon Nov 10 02:11:57 2014 +0200 +++ b/configfile.py Mon Nov 10 02:30:31 2014 +0200 @@ -55,6 +55,13 @@ json.dump (self.obj, fp, sort_keys = True, indent = 1) print "Config saved." + + def find_developer_by_email (self, commit_email): + for developer, emails in self.get_value ('developer_emails', default={}).iteritems(): + if commit_email in emails: + return developer + + return '' def init(): print 'Loading configuration...'