Closed druchoo closed 3 weeks ago
@AlvaroGG0 I'm going to take a look at this, would appreciate your input as well.
@druchoo Thanks for submitting this. Will get it sorted.
@AlvaroGG0 Thank you for the PR!
@druchoo @AlvaroGG0 Closing this one since no complaints after last PR.
The following changes seem to break evaluating patterns for files in the repo's root:
For example, with a
CODEOWNERS
file as follows, themy-file
file is not matched.The file will match both if conditions (https://github.com/skymoore/required-approvals/blob/main/src/index.js#L52-L57) and set pattern to
my-file/**
and changedFile to/my-file
. minimatch then fails to match.Converting https://github.com/skymoore/required-approvals/blob/main/src/index.js#L52-L57 to an if/else would fix but I'm not sure if that is best approach.