hmarr / codeowners

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

[bug] failed for users with dot #20

Closed zhilyaev closed 2 months ago

zhilyaev commented 1 year ago

Correct

*.go @user
*.go @zhilyaev

Not Correct.

*.go @firstname.lastname
*.go @dmitrii.zhiliaev

invalid owner format '@dmitrii.zhiliaev' at position 6

zhilyaev commented 1 year ago

links with #13

yuliazarkh commented 1 year ago

Same error with username with undescore. Example: *.go @firstname_lastname

hmarr commented 2 months ago

Now that #19 is merged, this is possible using a custom OwnerMatcher. If there's demand for a built-in set of GitLab owner matchers, I'd happily accept a PR.