Skip to content

Build status should be on target repo #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions buildbot_gitea/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,16 @@ def _send_impl(self, reports):

for sourcestamp in sourcestamps:
sha = sourcestamp['revision']
if 'head_sha' in props:
sha = props['head_sha']
repository_owner = None
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']
repository_name = props['repository_name']
repository_owner = props['owner']
elif 'repository_name' in props:
repository_name = props['repository_name']
else:
Expand Down