Hey everyone,
I know there's a lot of people in the community who are very interested in
data about...everything. Since the old CodeReview has an API and this
kind of data was useful to people, I've thought that people would like to
know about `gerrit query`
If you've got an account on Gerrit, all kinds of interesting data can be
grabbed from Gerrit via this command line query tool.
For example, to get a list of open changes that have CodeReview+2 (and
are probably ready for merging):
`ssh -p 29418
gerrit.wikimedia.org gerrit query --format=JSON is:open
CodeReview+2`
This would be the same as querying "is:open CodeReview+2" in Gerrit[0],
but in a scriptable format. (There's also --format=TEXT if you're looking
for something a little more human-readable)
For full docs on the feature, see here [1]. Have a great week.
-Chad
[0]
https://gerrit.wikimedia.org/r/#/q/is:open+CodeReview%252B2,n,z
[1]
https://gerrit.wikimedia.org/r/Documentation/cmd-query.html