A GitHub App for CODEOWNERS
Code owner approval that doesn't make you review your own work.
Keep ownership checks. Skip the extra reviewer on files you own. OwnerGate sets a Code owner approval status on your pull requests, using your repository's CODEOWNERS file.
Your ownership rules, applied per file.
- Each changed file needs approval from one of its owners. The last matching CODEOWNERS rule wins.
- Your own files need no second reviewer on your pull requests. Users and
@org/teamowners are supported. - An approval lapses only when the files it covers change. An owner's changes-requested review blocks approval.
Need more control? Add comments GitHub ignores: #: require 2, #: require each, or #: trust @dependabot[bot] for verified, signed commits by a trusted author.
Three steps to get started.
- Install OwnerGate on your chosen repositories.
- Add a CODEOWNERS file to the default branch.
- Require
Code owner approvalin your ruleset, selecting this app as its source.
No workflow files or repository secrets needed. The setup guide covers existing review requirements and pull requests.