GitHub now allows requiring approvals from specific teams to merge changes into protected branches based on files and folders. This feature offers more control over who approves changes in particular branches.
While CODEOWNERS files define ownership and identify individual reviewers, the new ruleset feature focuses on policy enforcement. It complements CODEOWNERS but does not replace it.
CODEOWNERS files will continue to manage ownership, support individual reviewers, and request reviews even when not mandatory.
This enhancement scales well across large enterprises, helping to enforce stricter review controls where needed.
Learn more about rulesets and policy enforcement in GitHub's documentation. Participate in the discussion and provide feedback in the GitHub Community.
Author's summary: GitHub's new ruleset feature strengthens branch protection by requiring specific team approvals, enhancing control and policy enforcement alongside traditional CODEOWNERS files.