Corrected repo url path in pull request handling

This commit is contained in:
Marvin Pohl 2018-09-04 15:13:00 +02:00
parent 6fc4629dba
commit 5785a5df55

View File

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