-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support version tags that don't start with v for semantic versioning #303
Conversation
Codecov Report
@@ Coverage Diff @@
## main #303 +/- ##
=======================================
Coverage 56.72% 56.72%
=======================================
Files 23 23
Lines 781 781
Branches 158 145 -13
=======================================
Hits 443 443
Misses 337 337
Partials 1 1
|
I totally agree with this. According to https://semver.org/ prefixing with
|
While I agree we should support this, the |
src/model/versioning.test.ts
Outdated
@@ -125,6 +125,7 @@ describe('Versioning', () => { | |||
'is happy with valid %s', | |||
(description) => { | |||
expect(Versioning.descriptionRegex1.test(description)).toBeTruthy(); | |||
expect(Versioning.descriptionRegex1.test(description?.slice(1))).toBeTruthy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest adding a separate tests for it('accepts valid semantic versions without v-prefix', () => {})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Two more things:
|
I didn't want to manually update the yarn.lock file, so I found that the semver-regex dependency came from husky, and I updated the versions of husky and lint-staged. The semver-regex dependency is now gone.
I was hoping that the name would come from the linked issue, but I guess it doesn't do that. I've updated the title. |
@@ -0,0 +1 @@ | |||
_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this do exactly? autogenerated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's auto-generated. The .husky/_
folder seems to be generated during the pre-commit check as a temporary workspace
Changes
Fixes #242
Checklist