Add submit records to query output.
Add a command line option to the gerrit query ssh command to include
submit records in output.
This facilitates the querying of information relating to the submit status
from the command line and by API clients, including information such as
whether the change can be submitted as-is, and whether the submission
criteria for each review label has been met. Example output:
submitRecords:
status: NOT_READY
labels:
label: Verified
status: OK
by:
name: James E. Blair
email: corvus@example.com
username: corvus
labels:
label: Code-Review
status: NEED
Change-Id: If13393aadfcce75a049d9b15c7467cb8df5570d9
This commit is contained in:
committed by
Edwin Kempin
parent
38121faaf2
commit
f9a4e2f42f
@@ -70,6 +70,11 @@ class Query extends SshCommand {
|
||||
processor.setIncludeDependencies(on);
|
||||
}
|
||||
|
||||
@Option(name = "--submit-records", usage = "Include submit and label status")
|
||||
void setSubmitRecords(boolean on) {
|
||||
processor.setIncludeSubmitRecords(on);
|
||||
}
|
||||
|
||||
@Argument(index = 0, required = true, multiValued = true, metaVar = "QUERY", usage = "Query to execute")
|
||||
private List<String> query;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user