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