Improved pull request name display

This commit is contained in:
Marvin Pohl 2018-09-04 15:16:30 +02:00
parent 5785a5df55
commit 7bb4f04cd2

View File

@ -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'],