From: Remi Gacogne Date: Thu, 24 Oct 2019 10:39:39 +0000 (+0200) Subject: changelog-from-pr: Display the GH login if the user has not set a name X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bc65c08831fe213e0637b802261aa0ba2cf0ea1;p=pdns changelog-from-pr: Display the GH login if the user has not set a name --- diff --git a/build-scripts/changelog-from-pr.py b/build-scripts/changelog-from-pr.py index eb6f045c2..7ae9584e7 100755 --- a/build-scripts/changelog-from-pr.py +++ b/build-scripts/changelog-from-pr.py @@ -74,7 +74,10 @@ for pr in arguments.pullrequest: except (requests.exceptions.HTTPError, ValueError) as e: print(e) sys.exit(1) - out += ' ({})'.format(user_info['name']) + if 'name'in user_info: + out += ' ({})'.format(user_info['name']) + else: + out += ' (@{})'.format(user_info['login']) out += '\n' if not arguments.oneline: