renames Matcher to OwnerMatcher as "matcher" is already used widely in the codebase for matching codeowners patterns
changes the signature of ParseFile to accept parse options (e.g. WithOwnerMatchers) rather than the matchers themselves, as it's likely we'll want to add more parser options in the future (e.g. to support the GitLab sections syntax)
Thanks for your PR—have a look at these changes and LMK what you think. I'm also happy to push the commit to your branch if you turn on the "Allow edits from maintainers" flag.
@haveachin - this takes https://github.com/hmarr/codeowners/pull/19 and adds a commit that
Matcher
toOwnerMatcher
as "matcher" is already used widely in the codebase for matching codeowners patternsParseFile
to accept parse options (e.g.WithOwnerMatchers
) rather than the matchers themselves, as it's likely we'll want to add more parser options in the future (e.g. to support the GitLab sections syntax)Thanks for your PR—have a look at these changes and LMK what you think. I'm also happy to push the commit to your branch if you turn on the "Allow edits from maintainers" flag.