@ExperimentalApi
public interface VcsPullRequestService
Modifier and Type | Method and Description |
---|---|
void |
closePullRequest(VcsPullRequest pullRequest)
Mark pull request as closed.
|
void |
closePullRequestsClosedInRepository(long targetRepositoryId,
List<VcsPullRequest> openPullRequests)
Synchronize the status of pull requests in DB and in remote repository
|
VcsPullRequest |
createPullRequest(String pullRequestKey,
Long sourceRepositoryId,
String sourceBranch,
long targetRepositoryId,
String targetBranch,
boolean isOpen)
Create new pull request and save it.
|
VcsPullRequest |
findByRepositoryAndKey(long targetRepositoryId,
String pullRequestKey)
Search pull request by pull request key (unique on repository level) and target repository id
|
List<VcsPullRequest> |
findOpenByRepository(long targetRepositoryId)
Search open pull requests by target repository and status.
|
void |
updatePullRequest(VcsPullRequest pullRequest,
Long sourceRepositoryId,
String source,
String target,
boolean isOpen)
Modify pull request.
|
@Nullable VcsPullRequest findByRepositoryAndKey(long targetRepositoryId, @NotNull String pullRequestKey)
targetRepositoryId
- target repository idpullRequestKey
- repository-specific pull request keyList<VcsPullRequest> findOpenByRepository(long targetRepositoryId)
targetRepositoryId
- target repository idvoid closePullRequest(@NotNull VcsPullRequest pullRequest)
pullRequest
- @NotNull VcsPullRequest createPullRequest(@NotNull String pullRequestKey, @Nullable Long sourceRepositoryId, @NotNull String sourceBranch, long targetRepositoryId, @NotNull String targetBranch, boolean isOpen)
void updatePullRequest(@NotNull VcsPullRequest pullRequest, @Nullable Long sourceRepositoryId, @NotNull String source, @NotNull String target, boolean isOpen)
void closePullRequestsClosedInRepository(long targetRepositoryId, @NotNull List<VcsPullRequest> openPullRequests)
targetRepositoryId
- openPullRequests
- Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.