{"name":"codeowners","title":"CODEOWNERS file example","description":"A CODEOWNERS file example for a monorepo with team owners per folder, the precedence rule explained, and how to require code owner reviews on GitHub.","category":"project","updated":"2026-11-30","url":"https://sniptide.com/templates/codeowners","files":[{"name":".github/CODEOWNERS","language":"text","content":"# Each line is a file pattern followed by one or more owners.\n# The last matching pattern takes precedence, so general rules go first.\n\n# Default owners for everything in the repository.\n*                       @acme/maintainers\n\n# Application code\n/apps/web/              @acme/frontend\n/apps/api/              @acme/backend\n/packages/ui/           @acme/design-system\n\n# Database migrations need a backend review on top of the default.\n/apps/api/migrations/   @acme/backend @acme/database\n\n# Infrastructure and CI\n/infra/                 @acme/platform\n/.github/workflows/     @acme/platform\nDockerfile              @acme/platform\n\n# Documentation\n/docs/                  @acme/docs\n*.md                    @acme/docs\n\n# Ownership rules change only with a maintainer's review.\n/.github/CODEOWNERS     @acme/maintainers\n"}]}