-
Notifications
You must be signed in to change notification settings - Fork 852
Changelogger: try a new format #21140
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
Conversation
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. |
anomiex
left a 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.
You'll also need to add some test cases to the provideCompareVersions method. Be sure to compare with things like "10.1-2109.2" versus "10.1-2109.10" in addition to the more obvious things.
You might also add some checks in provideNormalizeVersion for invalid versions, like "10.1-2113.1" (there's no 13th month) or "10.1-2100.1" (no zeroth month either).
projects/packages/changelogger/src/Plugins/WordpressVersioning.php
Outdated
Show resolved
Hide resolved
|
Also add tests that compare like "10.1-2109.1" with things like "10.1-alpha" and "10.1-beta" to make sure the ordering there is correct too. |
….php Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com>
projects/packages/changelogger/tests/php/tests/src/Plugins/WordpressVersioningTest.php
Show resolved
Hide resolved
…-version-wordpress
…-version-wordpress
anomiex
left a 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.
Some suggestions inline.
projects/packages/changelogger/src/Plugins/WordpressVersioning.php
Outdated
Show resolved
Hide resolved
projects/packages/changelogger/src/Plugins/WordpressVersioning.php
Outdated
Show resolved
Hide resolved
projects/packages/changelogger/src/Plugins/WordpressVersioning.php
Outdated
Show resolved
Hide resolved
anomiex
left a 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.
Looks good to me. Needs a master merge though.
* Changelogger: try a new format See #21138 * Add changelog * Start new release cycle * Update projects/packages/changelogger/src/Plugins/WordpressVersioning.php Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com> * Add more test cases * Add new possible string for pre-releases * Fix tested Atomic version number * Updaet comparisons between versions * Fix wrong test version * Fix typo * parsePrerelease to return an array of matched vals See: Automattic/jetpack#21140 (comment) * Fix typo * [not verified] Apply feedback Automattic/jetpack#21140 (review) Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com> Co-authored-by: Samiff <samiff@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1270677373
See #21138
Changes proposed in this Pull Request:
2109.1, i.e. 2021 September, first Atomic release.Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: