Class PullRequestParticipantStatusRequest

java.lang.Object
com.atlassian.bitbucket.pull.AbstractPullRequestRequest
com.atlassian.bitbucket.pull.PullRequestParticipantStatusRequest

public class PullRequestParticipantStatusRequest extends AbstractPullRequestRequest
Describes a request to set the status for a participant on a PullRequest.
Since:
7.17.21, 7.21.17, 8.9.6, 8.10.6, 8.11.5, 8.12.3, 8.13.2, 8.14.1, 8.15
  • Method Details

    • getLastReviewedCommit

      @Nullable public String getLastReviewedCommit()
      Get the last commit that was reviewed for the pull request, if provided. If the pull request's latest commit does not match with the provided last reviewed commit, a PullRequestOutOfDateException will be thrown to indicate that the finish review was requested on stale data.
      Returns:
      the last reviewed commit or null if not provided
      Since:
      8.9.18, 8.19.7, 9.0.1, 9.1
    • getStatus

      @Nonnull public PullRequestParticipantStatus getStatus()
    • getVersion

      @Deprecated public int getVersion()
      Deprecated.
      in 8.9.18, 8.19.7, 9.0.1, 9.1 use lastReviewedCommit instead
      Returns:
      the pull request version in review, or -1 if not provided