On 01/21/2015 08:17 PM, Vinay Mahuli wrote:
> We generally create branches in gerrit using the web ui accessing admin
> -> projects -> select project -> branches
> 
> Is it possible to do it using command line? 
> I need to automate creation of branch in gerrit with a script. 

I have not tested it, but this should be possible by using the Gerrit
API as documented at
https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#create-branch.

A client to access the Gerrit API is available at
https://pypi.python.org/pypi/gerritlib.

HTH, Christian.

-- 
Christian Berendt
Cloud Solution Architect
Mail: [email protected]

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

_______________________________________________
OpenStack-Infra mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra

Reply via email to