aboutsummaryrefslogtreecommitdiff
path: root/b4/pr.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-04-10 15:05:40 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-04-10 15:05:40 -0400
commit3f06f6fb40b41813e946154d591f4d1f37b52f85 (patch)
treecc4f650ea9b1773b54b718f5e704f99e3a1d022f /b4/pr.py
parent39181293c0cb1780e56e3eaee9ac2cc8abd8d43f (diff)
downloadb4-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.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/b4/pr.py b/b4/pr.py
index 2215861..40d3127 100644
--- a/b4/pr.py
+++ b/b4/pr.py
@@ -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: