Class PullRequestFinishReviewRequest

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

public class PullRequestFinishReviewRequest extends Object
Describes a request to finish a review on a PullRequest.
Since:
7.7
  • Method Details

    • getCommentText

      @Nullable public String getCommentText()
      Get the comment text that will be used for a general comment that is added to the pull request when you complete a review.
      Returns:
      the comment text or null if there is no comment text
    • getLastReviewedCommit

      @Nullable public String getLastReviewedCommit()
      Get the last commit that was reviewed for the pull request when you complete a review, 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
    • getParticipantStatus

      @Nullable public PullRequestParticipantStatus getParticipantStatus()
      Get the participant status to be used as the status for a reviewer's status on a pull request when you complete a review.
      Returns:
      the participant status or null if there is no participant status
    • getPullRequest

      @Nonnull public PullRequest getPullRequest()
      Get the pull request that is used for the review.
      Returns:
      the pull request