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

fix: match release_branches defaults exactly instead of matching as substrings #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cawfeecake
Copy link
Contributor

@cawfeecake cawfeecake commented Jul 30, 2024

Problem

If a repo has a branch with a name that includes a substring of one of the defaults values of release_branches, e.g. maintenance, this action will determine it to be a release branch when it should only be matching exact main or master.

Fix

Prefix ^ and suffix $ makes matches exact. Also aligned description: with what is in README

@cawfeecake cawfeecake changed the title prevent matching release_branch defaults as substrings rather than exact match release_branches defaults exactly instead of matching as substrings Jul 30, 2024
@cawfeecake cawfeecake changed the title match release_branches defaults exactly instead of matching as substrings fix: match release_branches defaults exactly instead of matching as substrings Jul 30, 2024
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.

1 participant