From: Remi Gacogne Date: Thu, 24 Oct 2019 10:40:42 +0000 (+0200) Subject: changelog-from-pr: Capitalize the first letter without lowercasing the rest X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11dbb9760ad0b5029c5f6849a2dcb5bae2859b02;p=pdns changelog-from-pr: Capitalize the first letter without lowercasing the rest --- diff --git a/build-scripts/changelog-from-pr.py b/build-scripts/changelog-from-pr.py index 7ae9584e7..d28e3fe58 100755 --- a/build-scripts/changelog-from-pr.py +++ b/build-scripts/changelog-from-pr.py @@ -61,7 +61,7 @@ for pr in arguments.pullrequest: tickets = re.findall(ticket_regex, body) if len(tickets): out += ' :tickets: {}\n'.format(', '.join(tickets)) - out += '\n {}'.format(pr_info['title'].capitalize()) + out += '\n {}'.format(pr_info['title'][0].capitalize() + pr_info['title'][1:]) if pr_info['user']['login'].lower() not in ['ahupowerdns', 'habbie', 'pieterlexis', 'rgacogne',