public class GithubPullRequestDetector extends Object implements VcsPullRequestDetector
| Constructor and Description |
|---|
GithubPullRequestDetector() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull List<VcsPullRequest> |
getOpenPullRequests(@NotNull VcsRepositoryData repositoryData)
List of open pull requests that are discovered in the repository. |
protected List<GithubPullRequestDto> |
getPullRequestsByRepository(@NotNull VcsRepositoryData repositoryData,
@NotNull GitHubAccessor gitHubAccessor) |
@Nullable ContextualVcsId<VcsPullRequestDetector> |
getVcsIdForExecutor(@NotNull 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 |
supportsForkedPullRequests()
Whether pull requests from forked repositories are handled.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitusePollingForPullRequestDetection@Nullable public @Nullable ContextualVcsId<VcsPullRequestDetector> getVcsIdForExecutor(@NotNull @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 @NotNull List<VcsPullRequest> getOpenPullRequests(@NotNull @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.RepositoryException@VisibleForTesting protected List<GithubPullRequestDto> getPullRequestsByRepository(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull GitHubAccessor gitHubAccessor) throws RepositoryException
RepositoryExceptionpublic boolean supportsForkedPullRequests()
VcsPullRequestDetectorsupportsForkedPullRequests in interface VcsPullRequestDetectorCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.