Use the HEAD sha, when reporting a PR issue

This commit is contained in:
Marvin Pohl 2021-07-05 13:49:59 +02:00
parent d1c24a641c
commit 52c7864e56

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: