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.
When
CODEOWNERSfile defines rules:And you open file
src/lib/feat-a/docs/instructions.mdand run:GhCoWhoyou 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.