LizzeBennet
LizzeBennet

Reputation: 197

Gerrit OWNERS Plugin - adding groups to OWNERS file

I use the owners plugin to add a list of developers as reviewers to a change automatically, so one of them have to approve it for the change to be committed.

Now, instead of changing the OWNERS file every time I need to add / remove a person to the list can I add a gerrit group to the OWNERS YAML file? I tried adding a group but it gets ignored.

This is the content of my OWNERS file.

inherited: true
owners:
- owners_Build_tools

It would be helpful to know if it is supported or if there is something wrong with my YAML file.

Upvotes: 1

Views: 1728

Answers (1)

DanGordon
DanGordon

Reputation: 671

Use the reviewers plugin and save yourself the headache.

https://gerrit.googlesource.com/plugins/reviewers/

That plugin is just for automatically adding people to a review - but it doesn't effect who can/cannot +2 a review.

You can use the label code review -2/+2 permission to add any number of groups to have exclusive rights to +2 a review.

Just make sure you also mark the permission as exclusive so that only those groups can +2 a review.

It should look like this:

enter image description here

Upvotes: 2

Related Questions