public class BitbucketServerPullRequestDetector extends AbstractBitbucketServerExecutor implements VcsPullRequestDetector
| Modifier and Type | Field and Description |
|---|---|
static SystemProperty.BooleanSystemProperty |
ENFORCE_PULLREQUEST_POLLING_ONLY |
vcsRepositoryManager| Constructor and Description |
|---|
BitbucketServerPullRequestDetector() |
| Modifier and Type | Method and Description |
|---|---|
List<VcsPullRequest> |
getOpenPullRequests(VcsRepositoryData repositoryData)
List of open pull requests that are discovered in the repository. |
protected com.atlassian.stash.rest.client.api.entity.Page<com.atlassian.stash.rest.client.api.entity.PullRequestStatus> |
getPullRequestsByRepository(com.atlassian.applinks.api.ApplicationLink applicationLink,
String project,
String repoSlug,
Integer startIndex,
long limit,
long repositoryId) |
ContextualVcsId<VcsPullRequestDetector> |
getVcsIdForExecutor(VcsRepositoryData vcsRepositoryData)
Returned id has to fulfill the following:
Given two VcsRepositoryData objects A and B, and executor e returning equal ContextualVcsId (in terms of equals()),
for any operation foo() provided by the executor,
the calls e::foo(A) and e::foo(B) should be equivalent.
|
boolean |
usePollingForPullRequestDetection(VcsRepositoryData repositoryData)
Check if Bamboo needs to actively poll in order to detect new/deleted pull requests
for specific repository configuration.
|
bitbucketServerToGitData, bitbucketServerToReadOnlyGitData, getGitModuleDescriptor, stashServerRemoteEventsAreWorkingpublic static final SystemProperty.BooleanSystemProperty ENFORCE_PULLREQUEST_POLLING_ONLY
@Nullable public ContextualVcsId<VcsPullRequestDetector> getVcsIdForExecutor(@NotNull VcsRepositoryData vcsRepositoryData)
IdentifyingExecutorVcsBranchDetector. If they also point
to the same branch, they are considered equal in context of VcsChangeDetectorgetVcsIdForExecutor in interface IdentifyingExecutor<VcsPullRequestDetector>@NotNull public List<VcsPullRequest> getOpenPullRequests(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
VcsPullRequestDetectorList of open pull requests that are discovered in the repository. Used for monitoring repositories for new PRs.getOpenPullRequests in interface VcsPullRequestDetectorrepositoryData - repositoryList of open pull requests. May be empty.RepositoryExceptionprotected com.atlassian.stash.rest.client.api.entity.Page<com.atlassian.stash.rest.client.api.entity.PullRequestStatus> getPullRequestsByRepository(com.atlassian.applinks.api.ApplicationLink applicationLink,
String project,
String repoSlug,
Integer startIndex,
long limit,
long repositoryId)
throws RepositoryException
RepositoryExceptionpublic boolean usePollingForPullRequestDetection(@NotNull
VcsRepositoryData repositoryData)
VcsPullRequestDetectorusePollingForPullRequestDetection in interface VcsPullRequestDetectorrepositoryData - repositoryCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.