]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: ceph-release-notes: strip trailing punctuation and whitespace 14385/head
authorNathan Cutler <ncutler@suse.com>
Fri, 7 Apr 2017 07:18:28 +0000 (09:18 +0200)
committerNathan Cutler <ncutler@suse.com>
Fri, 7 Apr 2017 09:11:16 +0000 (11:11 +0200)
Sometimes people put periods, whitespace, etc. at the end of their
PR/commit descriptions - strip these off for the purposes of
generating the release notes.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/script/ceph-release-notes

index 3687d4b9ca917e1d9b9243edd7a0b0377691ef97..69680bed24e494856ccd363fa74e6f22bf06ede9 100755 (executable)
@@ -195,6 +195,7 @@ def make_release_notes(gh, repo, ref, plaintext, verbose, strict, use_tags):
             if use_tags:
                 title = split_component(title, gh, number)
 
+            title = title.strip(' \t\n\r\f\v\.\,\;\:\-\=')
             pr2info[number] = (author, title, message)
 
             for issue in set(issues):