You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clarify CODEOWNERS code mapping binding in ownership rules docs #19347
This requires code mappings from stack trace linking to be configured first, so Sentry can map file paths between your build output and your repository.
This reads as a general prerequisite, but doesn't convey that CODEOWNERS import binds to one specific code mapping row at import/sync time. In getsentry/sentry, ProjectCodeOwners.repository_project_path_config is a unique FK to a single RepositoryProjectPathConfig, and convert_codeowners_syntax() bakes that mapping's stack/source root transform into the stored rule once, rather than resolving dynamically against the repo's current code mapping(s) at match time.
Practical implications not covered in the docs:
If a repo has multiple code mappings, CODEOWNERS must be (re-)imported once per mapping to cover each path variant ("Import CODEOWNERS" can be run multiple times with different mappings selected).
If a code mapping is added or changed after CODEOWNERS was imported, existing CODEOWNERS rules keep the old transform baked in and won't automatically pick up the new mapping without a re-import/re-sync.
A mismatched or no-op mapping (e.g., empty source root) silently produces CODEOWNERS rules that don't match actual in-app frame paths, with no error surfaced to the user.
Suggest clarifying in the #code-owners section that the code mapping used for CODEOWNERS is explicitly selected during import and is not automatically kept in sync with other mappings on the same repository integration.
Thanks for laying this out. I confirmed that each CODEOWNERS import is tied to the code mapping selected in the import dialog, and projects with multiple mappings need a separate import for each one. Current Sentry also rebuilds the related rules when a selected mapping changes, so I’ll document the mapping relationship without the older no-sync behavior.
Activity
linear-code commentedon Sep 10, 2026
DOCS-2944
sansynx commentedon Sep 22, 2026
Thanks for laying this out. I confirmed that each CODEOWNERS import is tied to the code mapping selected in the import dialog, and projects with multiple mappings need a separate import for each one. Current Sentry also rebuilds the related rules when a selected mapping changes, so I’ll document the mapping relationship without the older no-sync behavior.
sansynx commentedon Sep 22, 2026
I’ve opened #19541 with the verified mapping behavior and setup clarification.
docs(codeowners): clarify code mapping selection (#19541)
docs(codeowners): clarify code mapping selection (#19541)