hmarr / codeowners

🔒 Command line tool and Go library for CODEOWNERS files
MIT License
167 stars 19 forks source link

[BUG] Codeowner files with Giltlab nested teams not parsed properly #21

Closed yuliazarkh closed 2 months ago

yuliazarkh commented 1 year ago

Example of codeowner file:

* @group-x/subgroup-y/subgroup-z

throws invalid owner format '@group-x/subgroup-y/subgroup-z' at position 3

Gitlab docs: https://docs.gitlab.com/ee/user/project/codeowners/#add-a-group-as-a-code-owner

hmarr commented 2 months ago

I just merged https://github.com/hmarr/codeowners/pull/19 — you should be able to get around this issue using WithOwnerMatchers