Fixed repository information not being in pull request dictionary

This commit is contained in:
Marvin Pohl 2018-09-04 15:08:36 +02:00
parent d156ed3930
commit c662c59386

View File

@ -62,7 +62,7 @@ class GiteaHandler(BaseHookHandler):
timestamp = dateparse(pull_request['updated_at'])
base = pull_request['base']
head = pull_request['head']
repository = pull_request['repository']
repository = payload['repository']
change = {
'author': '{} <{}>'.format((pull_request['user']['full_name'],
pull_request['user']['email'])),