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.PullRequestRef
Retrieves theref
that has been requested to be merged.long
getId()
Retrieves the pull request's ID, relative to thetarget
repository
.com.atlassian.bitbucket.pull.PullRequestRef
getToRef()
Retrieves theref
targeted for the merge, if the pull request is accepted.int
Retrieves the pull request's current version.
-
Method Details
-
getFromRef
@Nonnull com.atlassian.bitbucket.pull.PullRequestRef getFromRef()Retrieves theref
that has been requested to be merged.- Returns:
- the ref to be merged
-
getId
long getId()Retrieves the pull request's ID, relative to thetarget
repository
.- Returns:
- the pull request's ID
-
getToRef
@Nonnull com.atlassian.bitbucket.pull.PullRequestRef getToRef()Retrieves theref
targeted 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
-