Skip to content
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

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Avoid catching [Type] Feature request
  • Loading branch information
anomiex authored and jeherve committed Dec 2, 2024
commit f0313ebd181bd3723668e2f6cf3b102aa51745b5
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ 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\]/, /^\[Pri/, /^\[.*?Feature/ ];
const requiredLabelTypes = [ /^\[Type\]/, /^\[Pri/, /^\[[^\]]*Feature/ ];
const missingLabelTypes = requiredLabelTypes.filter(
requiredLabelType => ! issueLabels.some( label => requiredLabelType.test( label ) )
);
Expand Down
Loading