From c662c593861e13b879aba616358a8ccfcff3dcc5 Mon Sep 17 00:00:00 2001 From: Marvin Pohl Date: Tue, 4 Sep 2018 15:08:36 +0200 Subject: [PATCH] Fixed repository information not being in pull request dictionary --- gitea/webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/webhook.py b/gitea/webhook.py index bd5710a..49935d0 100644 --- a/gitea/webhook.py +++ b/gitea/webhook.py @@ -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'])),