Merge 'stable-3.3'
This contains a revert of the change that brought back
experiments on stable-3.3 that we already deleted on
master: 5f000f8509
* origin/stable-3.3:
Set version to 3.3.2-SNAPSHOT
Set version to 3.3.1
Set version to 3.2.7-SNAPSHOT
Set version to 3.2.6
Set version to 3.1.12-SNAPSHOT
Set version to 3.1.11
Fix httpcore dependency needed by httpclient
Revert "Add support for Elasticsearch version 7.9.*"
Revert "Add support for Elasticsearch version 7.10.*"
Expose patch set level comment in stream event
Ship a list of default experiments from the backend and allow disabling
Revert "Clean up comment experiment flags"
Make UI experiments configurable from gerrit.config
ForRef#check should permit internal users to read all refs
Bazel: Adapt RBE to produce Java 11 language level
Add Jacek Centkowski to developers
Add support for Elasticsearch version 7.10.*
Add support for Elasticsearch version 7.9.*
Align http dependencies with elasticsearch-rest-client
ChangeNotes: Don't use ChangeIndex when we can avoid it
Change-Id: I873b0714115c779a536487b0c2a95159feefc6b1
This commit is contained in:
@@ -21,9 +21,11 @@ import com.google.gerrit.extensions.client.ReviewerState;
|
||||
import com.google.gerrit.extensions.common.FixSuggestionInfo;
|
||||
import com.google.gerrit.extensions.restapi.DefaultInput;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
/** Input passed to {@code POST /changes/[id]/revisions/[id]/review}. */
|
||||
public class ReviewInput {
|
||||
@@ -117,6 +119,15 @@ public class ReviewInput {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ReviewInput patchSetLevelComment(String message) {
|
||||
Objects.requireNonNull(message);
|
||||
CommentInput comment = new CommentInput();
|
||||
comment.message = message;
|
||||
// TODO(davido): Because of cyclic dependency, we cannot use here Patch.PATCHSET_LEVEL constant
|
||||
comments = Collections.singletonMap("/PATCHSET_LEVEL", Collections.singletonList(comment));
|
||||
return this;
|
||||
}
|
||||
|
||||
public ReviewInput label(String name, short value) {
|
||||
if (name == null || name.isEmpty()) {
|
||||
throw new IllegalArgumentException();
|
||||
|
Reference in New Issue
Block a user