Package com.atlassian.bitbucket.scm.pull
Interface MinimalPullRequest
public interface MinimalPullRequest
Describes a minimal
pull request, providing only the ID, version and
refs.-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.bitbucket.pull.PullRequestRefRetrieves therefthat has been requested to be merged.longgetId()Retrieves the pull request's ID, relative to thetargetrepository.com.atlassian.bitbucket.pull.PullRequestRefgetToRef()Retrieves thereftargeted for the merge, if the pull request is accepted.intRetrieves the pull request's current version.
-
Method Details
-
getFromRef
@Nonnull com.atlassian.bitbucket.pull.PullRequestRef getFromRef()Retrieves therefthat has been requested to be merged.- Returns:
- the ref to be merged
-
getId
long getId()Retrieves the pull request's ID, relative to thetargetrepository.- Returns:
- the pull request's ID
-
getToRef
@Nonnull com.atlassian.bitbucket.pull.PullRequestRef getToRef()Retrieves thereftargeted for the merge, if the pull request is accepted.- Returns:
- the merge target
-
getVersion
int getVersion()Retrieves the pull request's current version.- Returns:
- the pull request's version
-