Use the HEAD sha, when reporting a PR issue

This commit is contained in:
Marvin Pohl 2021-07-05 13:16:15 +02:00
parent eeaebe4d92
commit 8decb35652

View File

@ -168,6 +168,7 @@ class GiteaStatusPush(http.ReporterBase):
if 'pr_id' in props:
repository_name = props['head_reponame']
repository_owner = props['head_owner']
sha = props['head_sha']
elif 'repository_name' in props:
repository_name = props['repository_name']
else: