From 5785a5df55caa7920ada3fc3808baa21f15e6a2c Mon Sep 17 00:00:00 2001 From: Marvin Pohl Date: Tue, 4 Sep 2018 15:13:00 +0200 Subject: [PATCH] Corrected repo url path in pull request handling --- gitea/webhook.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gitea/webhook.py b/gitea/webhook.py index d3c47ec..78321e5 100644 --- a/gitea/webhook.py +++ b/gitea/webhook.py @@ -79,13 +79,13 @@ class GiteaHandler(BaseHookHandler): 'base_branch': base['ref'], 'base_sha': base['sha'], 'base_repo_id': base['repo_id'], - 'base_repository': base['clone_url'], - 'base_git_ssh_url': base['ssh_url'], + 'base_repository': base['repo']['clone_url'], + 'base_git_ssh_url': base['repo']['ssh_url'], 'head_branch': head['ref'], 'head_sha': head['sha'], 'head_repo_id': head['repo_id'], - 'head_repository': head['clone_url'], - 'head_git_ssh_url': head['ssh_url'], + 'head_repository': head['repo']['clone_url'], + 'head_git_ssh_url': head['repo']['ssh_url'], 'pr_id': pull_request['id'], 'pr_number': pull_request['number'], },