How do we make sure all PR to a branch require 2 approvals from specific 2 users? #129822
Unanswered
0xdhrv
asked this question in
Pull Requests
Replies: 1 comment 1 reply
-
To do this you need to configure some branch protection rules. One restriction you might face is the users will probably need to be classed as coder owners. You'll need to require that branches can only be merged from a PR, and require a review from 2 code owners. Setup Branch Protection Rule
Setup Code OwnersOnce you've went through those steps you'll need to also drop a code owners file into your repo. Can you read a bit about that here: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners I think a basic template would be something like this
Hope that helps |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
How do we make sure all PR to a branch require 2 approvals from specific 2 users?
Beta Was this translation helpful? Give feedback.
All reactions