From 7bb4f04cd20a1ad3a63cfe59fb685162f2f1fe72 Mon Sep 17 00:00:00 2001 From: Marvin Pohl Date: Tue, 4 Sep 2018 15:16:30 +0200 Subject: [PATCH] Improved pull request name display --- gitea/webhook.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitea/webhook.py b/gitea/webhook.py index 78321e5..6d2600c 100644 --- a/gitea/webhook.py +++ b/gitea/webhook.py @@ -66,7 +66,10 @@ class GiteaHandler(BaseHookHandler): change = { 'author': '{} <{}>'.format(pull_request['user']['full_name'], pull_request['user']['email']), - 'comments': pull_request['body'], + 'comments': 'PR#{}: {}\n\n{}'.format( + pull_request['number'], + pull_request['title'], + pull_request['body']), 'revision': pull_request['merge_base'], 'when_timestamp': timestamp, 'branch': head['ref'],