arichards at wikimedia
Jun 4, 2012, 10:18 AM
Post #2 of 2
Yep and I put together a tool that takes advantage of this for taking
actions based on arbitrary gerrit query results - it's particularly useful
for making bulk actions (eg approving dozens of change sets):
A next step for this script might be to create an interactive mode.
On Sat, Jun 2, 2012 at 4:41 AM, Siebrand Mazeland <s.mazeland [at] xs4all>wrote:
> Hey all,
> Ryan Lane just made me aware of the gerrit commandline. We're going to use
> it to approve l10n-bot commits right after submitting them for review.
> I want to share with you an example command:
> ssh l10n-bot [at] gerrit -p 29418 gerrit review 9748,1
> --code-review 2 --verified 1 --submit
> This has user "l10n-bot" set code-review to +2, verified to +1 for CHANGE
> 9748, PATCHSET 1, and tries to merge it.
> You can get some help text output using the following sample commands:
> Help on all gerrit actions:
> ssh l10n-bot [at] gerrit -p 29418 gerrit --help
> Help on gerrit review:
> ssh l10n-bot [at] gerrit -p 29418 gerrit review --help
> In all examples you will probably have to replace "l10n-bot" with your own
> gerrit username.
> Wikitech-l mailing list
> Wikitech-l [at] lists
Software Engineer, Mobile
Wikitech-l mailing list
Wikitech-l [at] lists