Package com.atlassian.bitbucket.pull
Class PullRequestFinishReviewRequest
java.lang.Object
com.atlassian.bitbucket.pull.PullRequestFinishReviewRequest
Describes a request to
finish a review
on a PullRequest
.- Since:
- 7.7
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the comment text that will be used for ageneral comment
that is added to thepull request
when you complete a review.Get the last commit that was reviewed for thepull request
when you complete a review, if provided.Get theparticipant status
to be used as the status for a reviewer's status on apull request
when you complete a review.Get thepull request
that is used for the review.int
Deprecated.
-
Method Details
-
getCommentText
Get the comment text that will be used for ageneral comment
that is added to thepull request
when you complete a review.- Returns:
- the comment text or
null
if there is no comment text
-
getLastReviewedCommit
Get the last commit that was reviewed for thepull request
when you complete a review, if provided. If the pull request's latest commit does not match with the provided last reviewed commit, aPullRequestOutOfDateException
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
Get theparticipant status
to be used as the status for a reviewer's status on apull request
when you complete a review.- Returns:
- the participant status or
null
if there is no participant status
-
getPullRequest
Get thepull request
that is used for the review.- Returns:
- the pull request
-
getVersion
Deprecated.in 8.9.18, 8.19.7, 9.0.1, 9.1 uselastReviewedCommit
insteadRetrieves the expectedversion
for the pull request, if provided. If the pull request's actual version does not match, aPullRequestOutOfDateException
will be thrown to indicate that the finish review was requested on stale data. In 9.0, this field will be required.- Returns:
- the pull request version in review, or -1 if not provided
- 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
-
lastReviewedCommit
instead