Skip to content

Commit c41eb36

Browse files
authored
Set the "refname" attribute of the build status notification so that Bitbucket Cloud can display only the correct status when a commit is the subject to multiple PRs (#1003)
1 parent 6ea819b commit c41eb36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/impl/notifier/BitbucketBuildStatusNotifications.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private static void sendNotifications(BitbucketSCMSource source, Run<?, ?> build
231231
* https://community.atlassian.com/t5/Bitbucket-questions/Re-Builds-not-appearing-in-pull-requests/qaq-p/1805991/comment-id/65864#M65864
232232
* that means refName null or valued with only head.getBranchName()
233233
*/
234-
refName = null;
234+
refName = head.getBranchName();
235235
bitbucket = source.buildBitbucketClient(head);
236236
} else {
237237
/*

0 commit comments

Comments
 (0)