multimediallc / multimediallc/codeowners-plus
Feature request: text pattern based code ownership.
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Go
- Stars
- 41
- Forks
- 13
- Avg merge
- 5d 14h
- Merged PRs (30d)
- 4
Description
This feature would allow defining regex patterns to specify owners.
This could be useful when developers are interested in reviewing the usage of a particular variable, function or feature.
Examples:
Assuming the syntax:
<file_path>:<regex>
# Match any file diff with the text `.select_related(` on it
**/*.py:\.select_related\( @user
# Match any files in a `migrations` directory that include `DeleteModel`
**/migrations/*.py:DeleteModel @user
# Owner definitions without patterns should still be valid
# Match all files
*
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Begin by locating the existing CODEOWNERS parsing and matching flow, then define how path-and-regex rules coexist with ordinary owner definitions and verify both examples and unchanged non-pattern rules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100