We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbff35c commit 27ad582Copy full SHA for 27ad582
src/main/java/com/cloudbees/jenkins/plugins/bitbucket/server/client/BitbucketServerAPIClient.java
@@ -344,6 +344,14 @@ private List<BitbucketServerPullRequest> getPullRequests(UriTemplate template)
344
setupPullRequest(pullRequest, endpoint);
345
}
346
347
+ if (endpoint != null) {
348
+ // Get PRs again as revisions could be changed by other events during setupPullRequest
349
+ if (endpoint.isCallChanges() && BitbucketServerVersion.VERSION_7.equals(endpoint.getServerVersion())) {
350
+ pullRequests = getResources(template, BitbucketServerPullRequests.class);
351
+ pullRequests.removeIf(this::shouldIgnore);
352
+ }
353
354
+
355
return pullRequests;
356
357
0 commit comments