-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add missing labels to changelog script, and enhance mapping function. #55066
Conversation
Size Change: 0 B Total Size: 1.72 MB ℹ️ View Unchanged
|
@vcanales Code looks good. Testing instructions? |
Thanks for taking a look. Running |
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.
Thanks, @vcanales!
Can you update the tests to check these cases? 🙂 E.g., changing the test fixtures to:
- Include a PR that includes the Command label
- Messing with the casing of some label
Flaky tests detected in fc5e057. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6452664647
|
@priethor I've added a few more test cases and updated snapshots and fixtures; for the latter, I used the output for |
fc5e057
to
d8dbe40
Compare
Pinging @priethor; friendly reminder! |
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.
LGTM! Thanks, Vicente! 🚀
Avoids missing mappings due to capitalization mismatch. eg. at the time of this change, the code looked for [Package] Block Editor, but on GitHub the label is actually typed [Package] Block editor — PRs labeled as such, were being sorted under Various.
d8dbe40
to
7f5e787
Compare
…#55066) * Add Commands package label as a changelog feature * Compare labels using lowercase values Avoids missing mappings due to capitalization mismatch. eg. at the time of this change, the code looked for [Package] Block Editor, but on GitHub the label is actually typed [Package] Block editor — PRs labeled as such, were being sorted under Various. * Add site editor label * Add tests for case insensitivity * Update fixtures and snapshots
Backported to Gutenberg 17.2 RC |
…#55066) * Add Commands package label as a changelog feature * Compare labels using lowercase values Avoids missing mappings due to capitalization mismatch. eg. at the time of this change, the code looked for [Package] Block Editor, but on GitHub the label is actually typed [Package] Block editor — PRs labeled as such, were being sorted under Various. * Add site editor label * Add tests for case insensitivity * Update fixtures and snapshots
Changes:
Compare labels using lowercase values.
Avoids missing mappings due to capitalization mismatch. eg. at the time
of this change, the code looked for [Package] Block Editor, but on
GitHub the label is actually typed [Package] Block editor — PRs labeled
as such, were being sorted under Various.
Add site editor label.
Add commands package label.