Interview Prep/Git & GitHub/GitHub, Actions and Pull Request Issues

CODEOWNERS is committed, but GitHub does not request reviews from the listed team.

IntermediateTroubleshootingGitHub, Actions and Pull Request Issues
Answer

Likely causes → The file is not in .github/, the root, or docs/ on the base branch; the team or user lacks write access to the repo; the syntax is invalid; or a later, more specific line overrides the pattern (last match wins).

Diagnose → Open the CODEOWNERS file on GitHub; invalid lines are highlighted with errors such as "Unknown owner". Check the team's repo permission.

gh api repos/org/repo/codeowners/errors

Fix → Move the file to .github/CODEOWNERS on the base branch, give the team write access, fix pattern order:

*                @org/platform
/services/pay/   @org/payments     # later lines override earlier ones

Prevent → Validate CODEOWNERS in CI using the codeowners/errors API and enable "Require review from Code Owners".

All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub, Actions and Pull Request Issues