From b1ca264c61566d4c384396a57bb6da4fe028f478 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Fri, 7 Apr 2017 09:18:28 +0200 Subject: [PATCH] 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 --- src/script/ceph-release-notes | 1 + 1 file changed, 1 insertion(+) 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): -- 2.47.3