Skip to content

CODEOWNERS reflects the boundaries

Without it, someone "just" tweaks the core at 2 AM and three domains break by morning.

nx-monorepo-owner-codeowners-boundaries

Why it matters

Failure modes if this rule is ignored
StakeIf ignored
No ownership
  • Without CODEOWNERS, boundary rules are comments — cross-domain PRs merge unnoticed.
Spreads failure
  • A late-night tweak to libs/shared/* can break multiple apps before anyone notices.

How to fix

Map .github/CODEOWNERS per domain. A PR touching libs/studio/* requires Studio-team approval. A PR touching libs/shared/* requires platform-leads approval.

Examples

Bad
text
# .github/CODEOWNERS
* @acme/everyone
Good
text
# .github/CODEOWNERS
/apps/sites-management/      @acme/team-sites
/libs/sites-management/      @acme/team-sites
/apps/studio/                @acme/team-studio
/libs/studio/                @acme/team-studio
/libs/shared/                @acme/platform-leads
/nx.json                     @acme/platform-leads
/.github/                    @acme/platform-leads

Contribute

Released under the MIT License.

esc