Class PullRequestCommitSearchRequest

java.lang.Object
com.atlassian.bitbucket.pull.PullRequestCommitSearchRequest

public class PullRequestCommitSearchRequest extends Object
Request for searching for pull requests associated with a commit.
Since:
5.11
  • Method Details

    • getCommitId

      @Nonnull public String getCommitId()
      Limits the search to pull requests that contain or created (in the case of a rebase/squash merge) the specified commit ID.
      Returns:
      the commit ID
    • getStates

      @Nonnull public Set<PullRequestState> getStates()
      When set, limits the search to pull requests in any of the specified states.
      Returns:
      a set containing zero or more states to filter by
    • getToRepositoryId

      @Nullable public Integer getToRepositoryId()
      When set, limits the search to pull requests which target the specified repository.
      Returns:
      the target repository ID