Skip to content

fix(codeowners): Add trailing slashes to preprod directory rules#108485

Merged
NicoHinderling merged 1 commit intomasterfrom
fix-emerge-tools-codeowners-rule
Feb 18, 2026
Merged

fix(codeowners): Add trailing slashes to preprod directory rules#108485
NicoHinderling merged 1 commit intomasterfrom
fix-emerge-tools-codeowners-rule

Conversation

@NicoHinderling
Copy link
Copy Markdown
Contributor

The preprod CODEOWNERS rules for src/sentry/preprod and static/app/views/preprod were missing trailing slashes, causing them to potentially match files with the preprod prefix rather than just the directories.

Adding trailing slashes ensures consistent directory-only matching, aligning with the existing tests/sentry/preprod/ rule that already had it.

The preprod CODEOWNERS rules for src/sentry/preprod and
static/app/views/preprod were missing trailing slashes, making them
match files with the "preprod" prefix in addition to the directory.
Adding trailing slashes ensures consistent directory-only matching,
aligning with the existing tests/sentry/preprod/ rule.
@NicoHinderling NicoHinderling marked this pull request as ready for review February 18, 2026 19:58
@NicoHinderling NicoHinderling requested a review from a team as a code owner February 18, 2026 19:58
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 18, 2026
@NicoHinderling NicoHinderling enabled auto-merge (squash) February 18, 2026 20:00
@NicoHinderling NicoHinderling merged commit b98a63d into master Feb 18, 2026
94 checks passed
@NicoHinderling NicoHinderling deleted the fix-emerge-tools-codeowners-rule branch February 18, 2026 20:20
NicoHinderling added a commit that referenced this pull request Feb 18, 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]>
JonasBa pushed a commit that referenced this pull request Feb 19, 2026
…8485)

The preprod CODEOWNERS rules for `src/sentry/preprod` and
`static/app/views/preprod` were missing trailing slashes, causing them
to potentially match files with the `preprod` prefix rather than just
the directories.

Adding trailing slashes ensures consistent directory-only matching,
aligning with the existing `tests/sentry/preprod/` rule that already had
it.
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
…8485)

The preprod CODEOWNERS rules for `src/sentry/preprod` and
`static/app/views/preprod` were missing trailing slashes, causing them
to potentially match files with the `preprod` prefix rather than just
the directories.

Adding trailing slashes ensures consistent directory-only matching,
aligning with the existing `tests/sentry/preprod/` rule that already had
it.
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

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