diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-04-10 15:05:40 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-04-10 15:05:40 -0400 |
commit | 3f06f6fb40b41813e946154d591f4d1f37b52f85 (patch) | |
tree | cc4f650ea9b1773b54b718f5e704f99e3a1d022f /b4/pr.py | |
parent | 39181293c0cb1780e56e3eaee9ac2cc8abd8d43f (diff) | |
download | b4-3f06f6fb40b41813e946154d591f4d1f37b52f85.tar.gz |
Add summaries to default templates
They are much more useful if b4.thanks-commit-url-mask is set, but even
without them this will list all subjects and corresponding commit IDs.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/pr.py')
-rw-r--r-- | b4/pr.py | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -206,12 +206,6 @@ def thanks_record_pr(lmsg): return allto = utils.getaddresses([str(x) for x in lmsg.msg.get_all('to', [])]) allcc = utils.getaddresses([str(x) for x in lmsg.msg.get_all('cc', [])]) - quotelines = list() - for line in lmsg.body.split('\n'): - if line.find('---') == 0: - break - quotelines.append('> %s' % line.strip('\r\n')) - out = { 'msgid': lmsg.msgid, 'subject': lmsg.full_subject, @@ -223,7 +217,7 @@ def thanks_record_pr(lmsg): 'remote': lmsg.pr_repo, 'ref': lmsg.pr_ref, 'sentdate': b4.LoreMessage.clean_header(lmsg.msg['Date']), - 'quote': '\n'.join(quotelines), + 'quote': b4.make_quote(lmsg.body, maxlines=6) } fullpath = os.path.join(datadir, filename) with open(fullpath, 'w', encoding='utf-8') as fh: |