Merge "Always auto confirm adding reviewers for set-reviewers SSH command" into stable-2.8
This commit is contained in:
@@ -77,7 +77,7 @@ public class PostReviewers implements RestModifyView<ChangeResource, Input> {
|
|||||||
public static class Input {
|
public static class Input {
|
||||||
@DefaultInput
|
@DefaultInput
|
||||||
public String reviewer;
|
public String reviewer;
|
||||||
Boolean confirmed;
|
public Boolean confirmed;
|
||||||
|
|
||||||
boolean confirmed() {
|
boolean confirmed() {
|
||||||
return Objects.firstNonNull(confirmed, false);
|
return Objects.firstNonNull(confirmed, false);
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ public class SetReviewersCommand extends SshCommand {
|
|||||||
for (String reviewer : toAdd) {
|
for (String reviewer : toAdd) {
|
||||||
PostReviewers.Input input = new PostReviewers.Input();
|
PostReviewers.Input input = new PostReviewers.Input();
|
||||||
input.reviewer = reviewer;
|
input.reviewer = reviewer;
|
||||||
|
input.confirmed = true;
|
||||||
String error;
|
String error;
|
||||||
try {
|
try {
|
||||||
error = post.apply(changeRsrc, input).error;
|
error = post.apply(changeRsrc, input).error;
|
||||||
|
|||||||
Reference in New Issue
Block a user