Liran
Liran

Reputation: 327

Gerrit permission to review a specific path

Im currently working on a big project with more then one team.

Lets say in the project there are some modules that each team working on.

In addition we are using gerrit for sometime now and there is something i couldn't find out.

My question is the following:
Is there a way to tell Gerrit that only specific people/group(on Gerrit) will have permission to review code (+2) on specific path/module on the project?

Upvotes: 1

Views: 1539

Answers (2)

Tanmay Dalvi
Tanmay Dalvi

Reputation: 61

This is possible, and can be achieved by using the Gerrit OWNERS Plugin. I haven't configured this plugin myself, but we use this in our codebase to protect certain areas of code.

Every folder that needs protection contains a file named OWNERS that has the following structure.

inherited: true
owners:
- [email protected]
- [email protected]

Here is the link to a readme for the plugin. Hope you can figure out how to configure it.

https://gerrit.googlesource.com/plugins/owners/+/refs/heads/master/README.md

Upvotes: 1

caneru
caneru

Reputation: 461

I think you can do this by making two separate commits. You can later add the group that you want to review the code on that specific path using gerrit interface.

Upvotes: 1

Related Questions