From: Nathan Cutler Date: Fri, 7 Apr 2017 07:18:28 +0000 (+0200) Subject: tools: ceph-release-notes: strip trailing punctuation and whitespace X-Git-Tag: v12.0.2~19^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14385%2Fhead;p=ceph.git tools: ceph-release-notes: strip trailing punctuation and whitespace 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 --- diff --git a/src/script/ceph-release-notes b/src/script/ceph-release-notes index 3687d4b9ca9..69680bed24e 100755 --- a/src/script/ceph-release-notes +++ b/src/script/ceph-release-notes @@ -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):