Page MenuHomePhabricator

Create a bot that can talk to Gerrit
Closed, ResolvedPublic

Description

As a developer I want a script that when run can post a -1 or +1 review to a gerrit patch.
This will enable us to in future setup a script that runs browser tests and fires off a -1 or a +1 to a Gerrit commit.

Event Timeline

Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson updated the task description. (Show Details)
Tgr added a subscriber: Tgr.Jun 2 2015, 2:05 AM

There is a REST API and an SSH API for doing reviews.

phuedx added a comment.Jun 2 2015, 9:51 AM

Python (and presumably a host of other languages) has got you covered: https://pypi.python.org/pypi?%3Aaction=search&term=gerrit&submit=search.

I went with the ssh command
Works perfectly and I've folded it into GerritCommandLine tool. We can go to Gerrit.wikimedia.org even less now!! woo! :)

https://github.com/jdlrobson/GerritCommandLine/commit/b4b3473470a6dcf457a6cc76525264aa9470ba7c

Jdlrobson closed this task as Resolved.Jun 9 2015, 12:54 AM

This is done I guess :)