Interview Prep/Git & GitHub/Branching strategies, pull requests and code review

What are CODEOWNERS and how does GitHub resolve them?

IntermediateConceptBranching strategies, pull requests and code review
Answer

A CODEOWNERS file in .github/, root or docs/ maps path patterns to users or teams. The last matching pattern wins. When "Require review from Code Owners" is enabled, a PR touching a path needs approval from an owner of that path.

*                @org/platform
/infra/          @org/sre
*.tf             @org/sre @org/security
All Git & GitHub questions Roadmap: Git & GitHub

More on Branching strategies, pull requests and code review