
arichards at wikimedia
Jun 4, 2012, 10:18 AM
Post #2 of 2
(293 views)
Permalink
|
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): http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/gerrit-dippybird/ 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. > > Cheers! > > Siebrand > > > _______________________________________________ > Wikitech-l mailing list > Wikitech-l [at] lists > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- Arthur Richards Software Engineer, Mobile [[User:Awjrichards]] IRC: awjr +1-415-839-6885 x6687 _______________________________________________ Wikitech-l mailing list Wikitech-l [at] lists https://lists.wikimedia.org/mailman/listinfo/wikitech-l
|