-
Notifications
You must be signed in to change notification settings - Fork 68
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
Fixed the version check regex to allow major versions > 9 #7352
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.43 MB ℹ️ View Unchanged
|
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.
Theoretically, we could also end up doing >= 10 patch releases for a version, e.g. 6.5.11
Maybe we could also use this PR for the patch version part of the regex?
Anyway, approving, it should work as expected for major versions
Thanks for taking up this task
Significance: patch | ||
Type: fix | ||
|
||
Fixed version check regex |
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.
Just noticed it's not an insignificant changelog, and it will appear in the next release's changelog if it stays like that.
Could you redo it so it's marked as a "comment"? It should, in the end, be written as:
Comment: Fixed version check regex
It's just a matter of leaving the first question empty after selecting "patch" I think (you'll see a text mentioning "insignificant", "leave empty" ...)
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.
Fixed with ad04862
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.
@leonardola Thank you for working on this! I left two comments below.
@@ -29,9 +29,9 @@ runs: | |||
TRIMMED_VERSION=$(echo "$VERSION" | xargs) | |||
|
|||
if ${{ env.IS_PRERELEASE == 'true' }}; then | |||
VERSION_FORMAT="^[0-9]\.[0-9]\.[0-9]-test-[1-9]$" | |||
VERSION_FORMAT="^[0-9]+\.[0-9]\.[0-9]-test-[1-9]$" |
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.
Assuming we won't add the test version more than 3, besides that last one, we might want to add +
after each of the [0-9]
, or it could break with the number over 9. For example, 10.10.10-test-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.
Sorry, I didn't notice Jordan's comment.
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.
I don't think x.10.z
would ever happen given the way we follow the versioning in Transact, but x.y.10
can happen yes
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.
Fixed with 51f4640
else | ||
VERSION_FORMAT="^[0-9]\.[0-9]\.[0-9]$" | ||
VERSION_FORMAT="^[0-9]+\.[0-9]\.[0-9]$" |
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.
Same as above
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.
Fixed with 51f4640
303b364
to
51f4640
Compare
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.
Thank you for the changes. LGTM
Fixes #5706
Changes proposed in this Pull Request
This PR fixes the Regex used to check the release version to allow major versions > 9
Testing instructions
The easiest way is to simply check the regexes match given versions.
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge