Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow matching on the base branch #61

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

gdostie
Copy link

@gdostie gdostie commented Aug 15, 2022

Adding the necessary logic to match on the base branch (issue #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant