How do we make sure all PR to a branch require 2 approvals from specific 2 users? #129822
Replies: 4 comments 4 replies
-
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.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Thanks for this. Is there a way to require two approvals from two different lists of people? For example: First approval needed from: [John, Alice, ...] Second approval needed from: [Steve, Emily, ...] |
Beta Was this translation helpful? Give feedback.
-
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