Skip to content

fix(codeowners): Add trailing slashes to directory patterns for recursive matching#108487

Merged
NicoHinderling merged 1 commit intomasterfrom
fix/codeowners-directory-trailing-slashes
Feb 18, 2026
Merged

fix(codeowners): Add trailing slashes to directory patterns for recursive matching#108487
NicoHinderling merged 1 commit intomasterfrom
fix/codeowners-directory-trailing-slashes

Conversation

@NicoHinderling
Copy link
Copy Markdown
Contributor

Related: #108485

Per GitHub's gitignore-style matching rules, a CODEOWNERS pattern like
/src/sentry/monitors only matches that exact path — not files inside
the directory. Adding a trailing / makes the pattern match recursively,
which is the intended behavior for directory ownership rules.

This fixes 22 directory patterns that were missing trailing slashes.
The 2 emerge-tools patterns (/src/sentry/preprod, /static/app/views/preprod)
are left unchanged as they are being handled separately.

…sive matching

Without trailing slashes, patterns like `/src/sentry/monitors` only match
the exact path per gitignore-style rules, not files inside the directory.
Appending `/` ensures recursive matching for all 22 affected directory patterns.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@NicoHinderling NicoHinderling requested a review from a team as a code owner February 18, 2026 20:06
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 18, 2026
@NicoHinderling NicoHinderling merged commit 90efa43 into master Feb 18, 2026
94 checks passed
@NicoHinderling NicoHinderling deleted the fix/codeowners-directory-trailing-slashes branch February 18, 2026 23:44
JonasBa pushed a commit that referenced this pull request Feb 19, 2026
…sive matching (#108487)

Related: #108485

Per GitHub's gitignore-style matching rules, a CODEOWNERS pattern like
`/src/sentry/monitors` only matches that exact path — not files inside
the directory. Adding a trailing `/` makes the pattern match
recursively,
which is the intended behavior for directory ownership rules.

This fixes 22 directory patterns that were missing trailing slashes.
The 2 `emerge-tools` patterns (`/src/sentry/preprod`,
`/static/app/views/preprod`)
are left unchanged as they are being handled separately.

Co-authored-by: Claude Opus 4.6 <[email protected]>
mchen-sentry pushed a commit that referenced this pull request Feb 24, 2026
…sive matching (#108487)

Related: #108485

Per GitHub's gitignore-style matching rules, a CODEOWNERS pattern like
`/src/sentry/monitors` only matches that exact path — not files inside
the directory. Adding a trailing `/` makes the pattern match
recursively,
which is the intended behavior for directory ownership rules.

This fixes 22 directory patterns that were missing trailing slashes.
The 2 `emerge-tools` patterns (`/src/sentry/preprod`,
`/static/app/views/preprod`)
are left unchanged as they are being handled separately.

Co-authored-by: Claude Opus 4.6 <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

claude-code-assisted Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants