public interface PullRequestSupplier
pull requests
by their target
repository
and ID
.
This is a simplification of the PullRequestService
, intended to be used in cases where a component needs to
be able to look up pull requests but doesn't need the full service functionality. Using this interface instead makes
such components easier to test.
Plugin developers: Plugins cannot autowire their components when importing both pullRequestSupplier
and PullRequestService
. In general, if a plugin needs PullRequestService
methods, it should
only use the PullRequestService
. This interface should be used when a plugin only needs to retrieve
pull requests.
Modifier and Type | Method and Description |
---|---|
PullRequest |
getById(int repositoryId,
long pullRequestId)
Retrieves a pull request by its ID, within the specified repository.
|
@Nullable PullRequest getById(int repositoryId, long pullRequestId)
repositoryId
- the ID of the repository to which the pull request will be mergedpullRequestId
- the ID of the pull request within the repositoryCopyright © 2019 Atlassian. All rights reserved.