I am doing some tests in order to move my team to git and GitHub
We are testing the code owners and pull request mechanism and I’ve encountered a problem:
I have 2 users in the repository, User1 (myself) that has Admin rights and User2 that is Write rights
I have set up the code owners as such:
I have branch protection in place that require 1 approval by code owner, and I excluded administrators
That means I can merge my own PR without the need for approval - that works fine
My problem is that User2, despite not being an Admin or code owner, can approve the PR.
Is there a way to make sure that users that are not admin or codeowners will not be able to approve PRs?