Hello,
I have added .bitbucket/CODEOWNERS file to my repo with following content:
file1.yaml reviewer1@example.com
/folder/file2.yaml reviewer2@example.com
When a user creates a pull request, the specified reviewers are automatically added. However, the user creating the PR can still remove the auto-assigned reviewers, add another reviewer, get approval, and then merge the PR.
We want to enforce that changes to the above files must be reviewed by the specific users listed in the CODEOWNERS file. For other files, any reviewer with access can approve and merge the changes.
Could you please advise how we can enforce these specific review requirements in Bitbucket?
Thanks in advance for your help!