Skip to content

wildcard paths not detected correctly #6

@comatory

Description

@comatory

When CODEOWNERS file defines rules:

* @acme/infra frank@example.com
src/lib/feat-a @acme/a-team
src/lib/feat-a/docs/* @acme/doc-team
src/lib/feat-a/docs/instructions.md @acme/infra
src/lib/feat-b @acme/b-team
src/lib/support/instructions.md @acme/b-team

And you open file src/lib/feat-a/docs/instructions.md and run :GhCoWho you get @acme/infra @acme/doc-team @acme/a-team. Using .../docs/* treats it as root * pattern.

To avoid issues like this, a proper test suite should be implemented that goes through examples given here. The plugin was originally intended to cover simple cases and did not try to be 100% accurate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions