fix(codeowners): Add trailing slashes to directory patterns for recursive matching#108487
Merged
NicoHinderling merged 1 commit intomasterfrom Feb 18, 2026
Merged
Conversation
…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]>
joshuarli
approved these changes
Feb 18, 2026
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]>
1 task
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #108485
Per GitHub's gitignore-style matching rules, a CODEOWNERS pattern like
/src/sentry/monitorsonly matches that exact path — not files insidethe 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-toolspatterns (/src/sentry/preprod,/static/app/views/preprod)are left unchanged as they are being handled separately.