Interface MinimalPullRequest


public interface MinimalPullRequest
Describes a minimal pull request, providing only the ID, version and refs.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.atlassian.bitbucket.pull.PullRequestRef
    Retrieves the ref that has been requested to be merged.
    long
    Retrieves the pull request's ID, relative to the target repository.
    com.atlassian.bitbucket.pull.PullRequestRef
    Retrieves the ref 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 the ref that has been requested to be merged.
      Returns:
      the ref to be merged
    • getId

      long getId()
      Retrieves the pull request's ID, relative to the target repository.
      Returns:
      the pull request's ID
    • getToRef

      @Nonnull com.atlassian.bitbucket.pull.PullRequestRef getToRef()
      Retrieves the ref 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