-
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 GH action to enforce PR labels #52760
Conversation
Flaky tests detected in 364cc27. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5656170550
|
I'm confused about [Type] Accessibility - would this be changing the overall Accessibility label to that? We're trying to consolidate right now so just wanted to check. In my mind, only having one of these wouldn't be enough for accessibility. For example, it's more likely that we'd see [Type] Accessibility & [Type] Bug. Perhaps I'm missing something though :D |
Good point; I should have added a note there: I think the In any case, it's only my subjective opinion. I don't have strong opinions and would like to hear @alexstine and @afercia's opinions on this! I'm happy to go either way, and whether we make Accessibility a type of task or not, we will make sure the changelog automation puts a11y items in its own top-level section. 🙏 |
Thanks for all your work on this reorganization. I don't have a strong opinion on whether accessibility should be a type. If that can help, I'd like to provide some context on why Accessibility in core is a Trac 'focus' and not a Trac component. It dates to a big reorganization of Trac by @nacin in 2014. Emphasis mine: Continuing the Trac component re-organization with "focuses" A new concept: FocusesWe’ve also added seven new “focuses” — ui, accessibility, javascript, docs, multisite, performance, and rtl. Focuses are about broad concepts and help break tickets down by specialties and skills, rather than functional areas of core. Multisite and RTL are widely general “modes” for WordPress, and each have contributors who focus strongly on those areas, but they are not well-contained “components” of core. Accessibility isn’t an area of core — it permates the entire user experience. |
This looks great, but it will take some getting used to. I expect that folks will want to add, for example, both a In thinking more about it, there should never be an accessibility "enhancement", since the lack of accessibility is a bug. Standardizing everything under a single top-level label |
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.
This will simplify the time release leads spent on curating the plugin release changelog tremendously.
LGTM
@ndiego thank you for raising this point. I'd totally agree and for some context I can confirm that historically in Core any a11y issue has always been considered a bug, at the point small a11y fixes used to be allowed even during beta. |
Thanks for the context and feedback! Given there is support towards treating Accessibility as a type of its own (or, at least, never an enhancement), I'll move forward and add the |
Just noticed this warning on a PR that had the |
I didn't add it originally to the list because it is completely clear when to use bug vs. regression, and in terms of communication (changelog, release notes), both bugs and regressions are combined in the bugfixes bucket. However, I've just merged one last PR with follow-ups that enables the |
Wonderful, thanks for adding it in @priethor! 🙂 |
What?
This PR introduces a new GitHub action that enforces that all PRs have exactly one label indicating the type of PR; other labels are not considered in this check.
When a PR has less or more than 1 type-related PR, the bot leaves a comment, and pre-merge checks fail. When the labels are updated, the bot updates/removes the comment and pre-merge checks accordingly.
Why?
Working on the Gutenberg changelog with mislabeled PRs is challenging. Some examples include:
Overview
,Tracking issue
)How?
By adding an automation that checks labels and enforces using exactly one of a small set of them, as follows (to be updated with the final labels used):
Note that while there are more type-related labels, many of them don't apply to PRs (e.g., Overview, Discussion don't apply, or PRs that fix Flaky Test issues can be consolidated as
[Type] Automated Testing
PRs).Testing Instructions
Check my test repo with the automation enabled here.
Screenshots or screencast
The screenshot below shows what the automation would look like, but please note the example labels are not the same ones as in the Gutenberg repository. See the
How
above to see which labels would be enforced in this repository.