pr-labeler-action icon indicating copy to clipboard operation
pr-labeler-action copied to clipboard

Allow matching on the base branch

Open gdostie opened this issue 3 years ago • 0 comments

Adding the necessary logic to match on the base branch (issue https://github.com/TimonVS/pr-labeler-action/issues/27).

Side note

I had to update the matcher package to version 4, otherwise an empty array of patterns for the base branch would match any label.

With version 2: matcher(['master'], []) returns ['master']

With version 4: matcher(['master'], []) returns []

Also, I couldn't switch the matcher function for isMatch from the same package because of this bug.

gdostie avatar Aug 15 '22 20:08 gdostie