Class ReviewInput
java.lang.Object
com.google.gerrit.extensions.api.changes.ReviewInput
Input passed to
POST /changes/[id]/revisions/[id]/review.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionUsers that should be added to the attention set of this change.A list of draft IDs that should be published.How to process draft comments already in the database that were not also described in this input request.booleanUsers in the attention set will only be added and removed based onaddToAttentionSetandremoveFromAttentionSet.Who to send email notifications to after review is stored.booleanIf true check to make sure that the comments being posted aren't already present.Account ID, name, email address or username of another user.booleanIf true mark the change as ready for review.Users that should be removed from the attention set of this change.Reviewers that should be added to this change or removed from it.Deprecated.booleanIf true mark the change as work in progress. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddUserToAttentionSet(String user, String reason) static ReviewInputapprove()static ReviewInputcreate()static ReviewInputdislike()static ReviewInputnoScore()patchSetLevelComment(String message) static ReviewInputstatic ReviewInputreject()removeUserFromAttentionSet(String user, String reason) reviewer(String reviewer, ReviewerState state, boolean confirmed) setReady(boolean ready) setWorkInProgress(boolean workInProgress)
-
Field Details
-
message
-
tag
-
labels
-
comments
-
robotComments
Deprecated. -
drafts
How to process draft comments already in the database that were not also described in this input request.If not set, the default is
ReviewInput.DraftHandling.KEEP. IfonBehalfOfis set, then no other value besidesKEEPis allowed. -
draftIdsToPublish
A list of draft IDs that should be published. -
notify
Who to send email notifications to after review is stored. -
notifyDetails
-
omitDuplicateComments
public boolean omitDuplicateCommentsIf true check to make sure that the comments being posted aren't already present. -
onBehalfOf
Account ID, name, email address or username of another user. The review will be posted/updated on behalf of this named user instead of the caller. Caller must have the labelAs-$NAME permission granted for each label that appears inlabels. This is in addition to the named user also needing to have permission to use the labels. -
reviewers
Reviewers that should be added to this change or removed from it. -
workInProgress
public boolean workInProgressIf true mark the change as work in progress. It is an error for bothworkInProgressandreadyto be true. -
ready
public boolean readyIf true mark the change as ready for review. It is an error for bothworkInProgressandreadyto be true. -
addToAttentionSet
Users that should be added to the attention set of this change. -
removeFromAttentionSet
Users that should be removed from the attention set of this change. -
ignoreAutomaticAttentionSetRules
public boolean ignoreAutomaticAttentionSetRulesUsers in the attention set will only be added and removed based onaddToAttentionSetandremoveFromAttentionSet. Normally, they are also added and removed when some events occur. E.g, adding/removing reviewers, marking a change ready for review or work in progress, and replying on changes. -
responseFormatOptions
-
-
Constructor Details
-
ReviewInput
public ReviewInput()
-
-
Method Details
-
message
-
patchSetLevelComment
-
label
-
label
-
label
-
reviewer
-
cc
-
reviewer
@CanIgnoreReturnValue public ReviewInput reviewer(String reviewer, ReviewerState state, boolean confirmed) -
addUserToAttentionSet
-
removeUserFromAttentionSet
-
blockAutomaticAttentionSetRules
-
setWorkInProgress
-
setReady
-
recommend
-
dislike
-
noScore
-
approve
-
reject
-
create
-