public class ReviewInput extends Object
POST /changes/[id]/revisions/[id]/review
.Modifier and Type | Class and Description |
---|---|
static class |
ReviewInput.CommentInput |
static class |
ReviewInput.DraftHandling |
static class |
ReviewInput.RobotCommentInput |
Modifier and Type | Field and Description |
---|---|
Map<String,List<ReviewInput.CommentInput>> |
comments |
ReviewInput.DraftHandling |
drafts
How to process draft comments already in the database that were not also described in this
input request.
|
Map<String,Short> |
labels |
String |
message |
NotifyHandling |
notify
Who to send email notifications to after review is stored.
|
Map<RecipientType,NotifyInfo> |
notifyDetails |
boolean |
omitDuplicateComments
If true check to make sure that the comments being posted aren't already present.
|
String |
onBehalfOf
Account ID, name, email address or username of another user.
|
boolean |
ready
If true mark the change as ready for review.
|
List<AddReviewerInput> |
reviewers
Reviewers that should be added to this change.
|
Map<String,List<ReviewInput.RobotCommentInput>> |
robotComments |
String |
tag |
boolean |
workInProgress
If true mark the change as work in progress.
|
Constructor and Description |
---|
ReviewInput() |
Modifier and Type | Method and Description |
---|---|
static ReviewInput |
approve() |
static ReviewInput |
dislike() |
ReviewInput |
label(String name) |
ReviewInput |
label(String name,
int value) |
ReviewInput |
label(String name,
short value) |
ReviewInput |
message(String msg) |
static ReviewInput |
noScore() |
static ReviewInput |
recommend() |
static ReviewInput |
reject() |
ReviewInput |
reviewer(String reviewer) |
ReviewInput |
reviewer(String reviewer,
ReviewerState state,
boolean confirmed) |
ReviewInput |
setReady(boolean ready) |
ReviewInput |
setWorkInProgress(boolean workInProgress) |
public String message
public String tag
public Map<String,List<ReviewInput.CommentInput>> comments
public Map<String,List<ReviewInput.RobotCommentInput>> robotComments
public ReviewInput.DraftHandling drafts
If not set, the default is ReviewInput.DraftHandling.KEEP
. If onBehalfOf
is set, then
no other value besides KEEP
is allowed.
public NotifyHandling notify
public Map<RecipientType,NotifyInfo> notifyDetails
public boolean omitDuplicateComments
public String onBehalfOf
labels
. This is in addition to the
named user also needing to have permission to use the labels.public List<AddReviewerInput> reviewers
public boolean workInProgress
workInProgress
and ready
to be true.public boolean ready
workInProgress
and ready
to be true.public ReviewInput message(String msg)
public ReviewInput label(String name, short value)
public ReviewInput label(String name, int value)
public ReviewInput label(String name)
public ReviewInput reviewer(String reviewer)
public ReviewInput reviewer(String reviewer, ReviewerState state, boolean confirmed)
public ReviewInput setWorkInProgress(boolean workInProgress)
public ReviewInput setReady(boolean ready)
public static ReviewInput recommend()
public static ReviewInput dislike()
public static ReviewInput noScore()
public static ReviewInput approve()
public static ReviewInput reject()