diff --git a/buildbot_gitea/reporter.py b/buildbot_gitea/reporter.py index 85d0a39..27347f2 100644 --- a/buildbot_gitea/reporter.py +++ b/buildbot_gitea/reporter.py @@ -164,12 +164,10 @@ def _send_impl(self, reports): if sha is None: # No special revision for this, so ignore it continue - # If this is a pull request, send the status to the head repository if 'pr_id' in props: - repository_name = props['head_reponame'] - repository_owner = props['head_owner'] sha = props['head_sha'] - elif 'repository_name' in props: + + if 'repository_name' in props: repository_name = props['repository_name'] else: match = re.match(self.ssh_url_match, sourcestamp['repository'])