Interface BitbucketPullRequestSource

All Known Implementing Classes:
BitbucketCloudPullRequestRepository, BitbucketServerPullRequestSource

public interface BitbucketPullRequestSource
Represents a pull request source, which is a repository, a branch in that repository and the head commit.
  • Method Details

    • getRepository

      BitbucketRepository getRepository()
      Returns:
      source repository
    • getBranch

      BitbucketBranch getBranch()
      Returns:
      source branch to be merged in the pull request
    • getBranchType

      @NonNull PullRequestBranchType getBranchType()
      Returns the type of the source branch.

      In some server implementations the source HEAD could be a tag.

      Returns:
      the source branch type
    • getCommit

      BitbucketCommit getCommit()
      Returns:
      the branch head commit