-
Notifications
You must be signed in to change notification settings - Fork 812
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
Gardening: update conditions to include "[<plugin> Feature]" labels #40396
Conversation
Some of our standalone plugins do not use [Feature] labels ; they use [PluginName Feature] labels instead. Let's update our conditions to be happy with such labels as well. This commit also makes the priority condition a bit more broad, so it is satisfied with both "[Pri]" and "[Priority]" labels.
45b079b
to
f68d7de
Compare
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. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! |
@@ -152,9 +152,9 @@ async function triageIssues( payload, octokit ) { | |||
const issueLabels = await aiLabeling( payload, octokit ); | |||
|
|||
// At this point, if we still miss a [Type] label, a [Feature] label, or a [Pri] label, ask the author to add it. | |||
const requiredLabelTypes = [ '[Type]', '[Feature', '[Pri]' ]; | |||
const requiredLabelTypes = [ /^\[Type\]/, /^\[Pri/, /^\[.*?Feature/ ]; |
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.
Did you intend to leave off the \]
from [Pri]
?
Also, it might be good to avoid potentially matching something like [Type] Feature Request
.
const requiredLabelTypes = [ /^\[Type\]/, /^\[Pri/, /^\[.*?Feature/ ]; | |
const requiredLabelTypes = [ /^\[Type\]/, /^\[Pri\]/, /^\[[^\]]*Feature/ ]; |
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.
Did you intend to leave off the ] from [Pri]?
I did, yes, I figured it'd be useful so we can catch [Priority]
for repos that don't use the shorthand.
it might be good to avoid potentially matching something like [Type] Feature Request.
Good point. Done in f0313eb
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 reasonable. Haven't tested though.
…#40396) * Gardening: update conditions to include "[<plugin> Feature]" labels Some of our standalone plugins do not use [Feature] labels ; they use [PluginName Feature] labels instead. Let's update our conditions to be happy with such labels as well. This commit also makes the priority condition a bit more broad, so it is satisfied with both "[Pri]" and "[Priority]" labels. * Avoid catching [Type] Feature request See Automattic/jetpack#40396 (comment) --------- Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12138232773 Upstream-Ref: Automattic/jetpack@4583fe6
…#40396) * Gardening: update conditions to include "[<plugin> Feature]" labels Some of our standalone plugins do not use [Feature] labels ; they use [PluginName Feature] labels instead. Let's update our conditions to be happy with such labels as well. This commit also makes the priority condition a bit more broad, so it is satisfied with both "[Pri]" and "[Priority]" labels. * Avoid catching [Type] Feature request See Automattic/jetpack#40396 (comment) --------- Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12138232773 Upstream-Ref: Automattic/jetpack@4583fe6
Just like in #40396, we want to allow the AI labeler to pull plugin-specific labels as well.
Proposed changes:
Some of our standalone plugins do not use [Feature] labels ; they use [PluginName Feature] labels instead. Let's update our conditions to be happy with such labels as well.
This commit also makes the priority condition a bit more broad, so it is satisfied with both "[Pri]" and "[Priority]" labels.
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
This can only be tested in a fork, where you'll merge this branch into
trunk
, then create an issue with no content and the "[Priority] High", "[Type] Bug", and "[Boost Feature] Cloud CSS" labels. No commment prompting for labels should get posted.