This request is copy of a request from Bitbucket Data Center here:
We have certain groups in our organization that have the responsibility to review and approve pull requests in certain high-impact repositories. When people join/leave the group, we have to go into each repository and add/remove that user. Ugh.
I'd like to be able to specify a group when setting up default reviewers for a repository.
Currently I can specify groups every where else, but not in the Default Reviewers configuration, which makes it very difficult to maintain when people leave/join different teams or groups. This functionality is standard and best practice in almost every groupware application used by most organizations.
Hi,
We released the CODEOWNERS feature a few months ago, which allows you to automatically add reviewers in pull requests based on the .bitbucket/CODEOWNERS file. You can specify workspace groups in that file; the documentation for this feature is here:
This is the blog post announcing this feature:
Is this something that works for you?
Kind regards,Theodora
Hi Theordora,
Thank you so much for this information. I can definitely see where this will be useful within our organization. However, we still have a need for use of groups with Default Reviewers. The use case is to define groups of people who must approve a PR for merging to protected branches. While the CODEOWNERS feature is useful, because it is contained within the repository itself, it means anyone can change the contents.
We require essentially "admin" level protection for these groups. For example:
- our Release Engineering team must approve merges to protected branches
- Changes to ITAR restricted code bases must be approved by U.S. based engineers.
- Security changes/reviews must be approved by our Security team
Most of the groups operate across many repositories but are not "code owners". Therefore, it is desirable for these types of groups to be defined in a central location and applied to repositories by those with Bitbucket Admin privileges rather than in a file which can be changed by anyone with repository access.
Thanks.
--
Paul
Hi Paul,
Thank you for the feedback.
I would like to note two things:
Does your use case concern users that have write access to the destination branches?
Hi Theodora,
Thanks for pointing out that CODEOWNERS is enforced based on the destination branch, that's actually very helpful and could well solve the issue.
We do use branch restrictions to enforce a minimum number of Default Reviewers currently, but it seems that CODEOWNERS and teams.yaml might be a more flexible way to do this and we'd merely restrict write access via branch restrictions instead.
I'm not going to commit to saying "we don't need groups for default reviewers" quite yet, but I'll certainly give this a serious shot and see if we can't do just that
Thanks again!
It looks like you're new here. Sign in or register to get started.