Command Line tool for Review Board administration

61 views
Skip to first unread message

GC

unread,
Apr 22, 2015, 11:11:56 AM4/22/15
to revie...@googlegroups.com
Hi,


Does Review Board provides a CLI for administrators? We use Git as our version control system and we receive following requests from time-to-time:

Add repository
Add user
Add reviewers (Not very frequent)

Although these operations don’t consume much time, I would like to automate them, if possible.


Thanks

Christian Hammond

unread,
Apr 22, 2015, 5:15:15 PM4/22/15
to revie...@googlegroups.com
Hi,

We don't provide a tool for adding those (though that'd be a handy project for someone to work on). We do have an API, though, for adding/manipulating repositories, default reviewers, review requests, and just about anything else.

It does not support adding users, though. Most people use an LDAP or Active Directory server when they need that kind of ability. That said, I'm not opposed to adding that functionality, but it'd be low on our todo list, so the best way to get that into the product is by writing a patch and contributing it.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

GC

unread,
Apr 23, 2015, 6:43:18 AM4/23/15
to revie...@googlegroups.com, chi...@chipx86.com

Thanks for the reply Christian. As far as our requests related to repositories is concerned, it’s only about adding (not updating) Name, Repository type, Path and Mirror path.


I checked the API link for repository resource. Although I could find fields for Name, Path and Mirror path, i could not find any field for ‘Repository type’ (Bazaaar, Clearcase, CVS etc). Is ‘tool’ field what I’m looking for? More importantly, it looks like the API supports only updation not addition. Please correct me if I’m wrong. 


https://www.reviewboard.org/docs/manual/2.5/webapi/2.0/resources/repository/



Regards,

Gaurav 

Steve

unread,
Apr 23, 2015, 12:57:54 PM4/23/15
to revie...@googlegroups.com, chi...@chipx86.com
For my test suite, I create a perforce repo using the api this way:

from rbtools.api.client import RBClient

client = RBClient("http://localhost")
client.login("sallan", "sallan")
root = client.get_root()
root.get_repositories().create(name='perforce', tool="Perforce", path="localhost:1492")

--Steve

GC

unread,
Apr 26, 2015, 10:59:44 AM4/26/15
to revie...@googlegroups.com, chi...@chipx86.com
Thanks for the help Steve! I'll check this out. :)


Regards,
Gaurav
Reply all
Reply to author
Forward
0 new messages