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 {
|
||||
@DefaultInput
|
||||
public String reviewer;
|
||||
Boolean confirmed;
|
||||
public Boolean confirmed;
|
||||
|
||||
boolean confirmed() {
|
||||
return Objects.firstNonNull(confirmed, false);
|
||||
|
||||
@@ -139,6 +139,7 @@ public class SetReviewersCommand extends SshCommand {
|
||||
for (String reviewer : toAdd) {
|
||||
PostReviewers.Input input = new PostReviewers.Input();
|
||||
input.reviewer = reviewer;
|
||||
input.confirmed = true;
|
||||
String error;
|
||||
try {
|
||||
error = post.apply(changeRsrc, input).error;
|
||||
|
||||
Reference in New Issue
Block a user