This is a customer-configured GitHub control, not a Charlie product guarantee.
Your organization owns the configuration and GitHub enforces them. Charlie
cannot bypass GitHub rulesets.
Before you start
- Ensure you have a GitHub team that includes every trusted human who should approve PRs. You can use an existing team, such as
engineering, or create one. - Ensure your repo is organization-owned. GitHub’s team reviewer requirements are not available for user-owned repos.
- Ensure your GitHub plan and repo type support rulesets and required reviewers.
Configure the merge gate
Create a branch ruleset formain and any release branches that need the same protection. Configure it to:
- Require changes to arrive through a pull request.
- Require one approval from the team with the humans who can approve PRs.
FAQ
Should we use CODEOWNERS instead?
UseCODEOWNERS when the required human reviewer depends on the files changed—for example, require Security for authentication code and Platform for infrastructure. Add the relevant team to CODEOWNERS, then enable Require review from Code Owners in the ruleset. A code-owner team must be visible and have write access; if multiple owners match, approval from any one of them is sufficient. GitHub Docs
How do we do this with classic branch protection?
Classic branch protection does not offer direct required-team approval quotas. Put the human team inCODEOWNERS—using a catch-all pattern if it should review every PR—and enable Require review from Code Owners. GitHub Docs