- Repository: my GHAS schedules demo repo (public).
- Current behavior: when I push a branch and open a pull request, GitHub shows no requested reviewers because there are no repo-level rules or CODEOWNERS configured.
.github/ directory:
- Path:
.github/CODEOWNERS
- Each line maps a file pattern to one or more owners (users or teams).
- Owner formats:
- Individual user:
@username - Organization team:
@org/team-name
- Individual user:
- Patterns follow GitHub filename globbing (similar to
.gitignore).
- The referenced user or team must exist.
- Organization teams must be visible (not secret).
- The team must have at least Write access to the repository.
Error example
If the referenced team is not visible or lacks write permission, you may see an error like:
- Confirm the team exists in the organization.
- Ensure the team visibility is public (not a secret team).
- Grant the team at least Write access to the repository:
- Repository Settings → Collaborators & teams, or
- Organization → Teams → select team → Repositories → Add repository with Write access.

Make sure teams referenced in CODEOWNERS are organization teams (use the
@org/team format), are publicly visible, and have at least Write access to the target repository. Otherwise GitHub will flag the owner as unknown and the CODEOWNERS file will be invalid.