]> granicus.if.org Git - pdns/commitdiff
changelog-from-pr: Capitalize the first letter without lowercasing the rest
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 24 Oct 2019 10:40:42 +0000 (12:40 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 24 Oct 2019 10:40:42 +0000 (12:40 +0200)
build-scripts/changelog-from-pr.py

index 7ae9584e7a33d1db968a3093c2d18a79b4eca42f..d28e3fe5849aa425888ec5add1edb4092ec72d9c 100755 (executable)
@@ -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',