Skip to content

Commit d44df30

Browse files
committed
ISSUE 30: pullRequest.createStatus Reports status to the pull request fork, not the fork being submitted to
1 parent 53b8504 commit d44df30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jenkinsci/plugins/pipeline/github/PullRequestGroovyObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ public CommitStatusGroovyObject createStatus(final String status,
525525
commitStatus.setTargetUrl(targetUrl);
526526
try {
527527
return new CommitStatusGroovyObject(
528-
commitService.createStatus(head, pullRequest.getHead().getSha(), commitStatus));
528+
commitService.createStatus(base, pullRequest.getHead().getSha(), commitStatus));
529529
} catch (final IOException e) {
530530
throw new UncheckedIOException(e);
531531
}

0 commit comments

Comments
 (0)