From 52c7864e56d1425f4c0a76c1e692942047bdd849 Mon Sep 17 00:00:00 2001 From: Marvin Pohl Date: Mon, 5 Jul 2021 13:49:59 +0200 Subject: [PATCH] Use the HEAD sha, when reporting a PR issue --- buildbot_gitea/reporter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/buildbot_gitea/reporter.py b/buildbot_gitea/reporter.py index a7c6e52..ccb5b3d 100644 --- a/buildbot_gitea/reporter.py +++ b/buildbot_gitea/reporter.py @@ -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: