From 367a90bb95813e183a2092a51882949485731ae6 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 1 Feb 2016 07:39:00 -0500 Subject: [PATCH] Automatically find a better email for a committer than x@users.noreply.github.com --- scripts/release.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/release.py b/scripts/release.py index a8fef3a31b..00f25b0b5d 100755 --- a/scripts/release.py +++ b/scripts/release.py @@ -400,6 +400,14 @@ def prs_by_email(start_ref, end_ref): pass # this commit will be included in the commits_without_prs table else: email = emails.get(merge.author.email, merge.author.email) + if email.endswith("@users.noreply.github.com"): + # A bogus GitHub address, look up their GitHub name in + # people.yaml + username = email.split("@")[0] + try: + email = people[username]['email'] + except KeyError: + pass unordered_data[email].add((pr_num, merge)) ordered_data = collections.OrderedDict()