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(git-client): match semver better in unstable tag regex #1277

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Rulqu
Copy link

@Rulqu Rulqu commented May 20, 2024

Fixes #1276
Fixes #935

@dangreen
Copy link
Member

dangreen commented May 20, 2024

@Rulqu Thank you! please add test case for these changes

@Rulqu
Copy link
Author

Rulqu commented May 21, 2024

@dangreen I don't have any experience in how to do tests. I'm just a devops who wanted to use this tool and knew a bit of regex. I could learn but I don't really know how to start.

@dangreen dangreen self-requested a review May 22, 2024 10:04
@dangreen dangreen self-assigned this May 22, 2024
@dangreen dangreen added this to the next+2 milestone May 22, 2024
@dangreen
Copy link
Member

@Rulqu Looks like your regex is incorrect. Please see tests result

@Rulqu
Copy link
Author

Rulqu commented May 22, 2024

@dangreen Ah, I figured out how the testing works here. I guess I didn't research enough. I fixed the regex and added some entries to the test that failed before my fix.

@Rulqu
Copy link
Author

Rulqu commented May 23, 2024

This also fixes #935 and invalidates #936

@coveralls
Copy link

Coverage Status

coverage: 76.419%. remained the same
when pulling 5332bca on Rulqu:unstableTagRegexFix
into d3b8aaa on conventional-changelog:master.

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

Successfully merging this pull request may close these issues.

unstableTagRegex isn't semver compliant unstableTagTest doesn't support empty preid
3 participants