CODEOWNERS generator and validator
Edit your CODEOWNERS rules, get instant validation of owners and patterns, and test any file path to see who GitHub would request a review from.
Valid: 7 rules, no problems found.
infra/prod/network.tf is owned by @acme/platform (line 10: /infra/**/*.tf).
Normalized file
# Default owners for everything
* @acme/engineering
# Frontend
/web/ @acme/frontend
*.css @acme/design
# Backend and infrastructure
/api/ @acme/backend @alice
/infra/**/*.tf @acme/platform
/docs/ docs@acme.dev
# CI changes need platform review
/.github/workflows/ @acme/platform
Everything runs in your browser; nothing you type is sent anywhere.
How to use it
- Write or paste your CODEOWNERS rules. Each line is a file pattern followed by one or more owners.
- Fix any errors in the validation list, such as invalid owner names or unsupported pattern syntax.
- Enter a file path to test. The last matching rule wins, so put general rules first and specific ones after.
Frequently asked questions
Where does the CODEOWNERS file go?
In .github/, the repository root or docs/. GitHub uses the first one it finds in that order.
Which rule wins when several match?
The last matching pattern in the file takes precedence, so order rules from general to specific.
Who can be an owner?
A GitHub username (@alice), a team (@org/team) or an email address tied to a GitHub account. Owners need write access to the repository.
What patterns are not supported?
Negation with !, character ranges in [ ] and escaping with #. Most other gitignore syntax works, including * and **.
Made by compiler.dev, faster GitHub Actions runners. More free tools.
Related tools
- Dependabot config generatorGenerate a dependabot.yml for npm, pip, Docker, GitHub Actions, Go, Cargo and more, with schedule, grouping, labels and reviewers. Validated, copy-ready.
- GitHub Actions workflow YAML checkerPaste a GitHub Actions workflow and catch missing runs-on, unpinned actions, pull_request_target risks, missing permissions and bad needs.
- Conventional commit and semver bump helperPaste commit messages to check Conventional Commits format, find the next semantic version (major, minor, patch) and generate a changelog.
- On-call rotation generatorGenerate an on-call rotation schedule from a list of people, a time zone and a shift length. See the calendar table and download an ICS file.