Skip to content

Feature request: text pattern based code ownership. #48

Description

@jaimevp54

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
*  

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions