fix: ensure issues created outside templates receive needs-triage label#37505
Merged
mergify[bot] merged 4 commits intoaws:mainfrom Apr 3, 2026
Merged
fix: ensure issues created outside templates receive needs-triage label#37505mergify[bot] merged 4 commits intoaws:mainfrom
mergify[bot] merged 4 commits intoaws:mainfrom
Conversation
Issues created via the GitHub API, AI assistants, or blank issue forms don't go through issue templates, so they never receive the needs-triage label. This means the issue-triage-manager workflow silently skips them. Add a lightweight workflow that applies needs-triage to any newly opened issue that has no labels, ensuring every issue enters the triage pipeline. Closes aws#37454
aws-cdk-automation
previously requested changes
Apr 2, 2026
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
vishaalmehrishi
requested changes
Apr 2, 2026
vishaalmehrishi
approved these changes
Apr 3, 2026
Contributor
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Contributor
Merge Queue Status
This pull request spent 36 minutes 38 seconds in the queue, including 30 minutes 35 seconds running CI. Required conditions to merge
|
Contributor
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Contributor
|
Comments on closed issues and PRs are hard for our team to see. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue # (if applicable)
Closes #37454.
Reason for this change
Issues created outside of GitHub issue templates (e.g., via the GitHub API, AI-assisted tools like Claude Code, or blank issue forms) never receive the
needs-triagelabel. Since theissue-triage-managerworkflow inissue-label-assign.ymlrequiresneeds-triageviaincluded-labels, these issues are silently skipped — no area label, no assignee, no triage visibility.Description of changes
Added a new lightweight workflow
.github/workflows/ensure-triage-label.ymlthat:issues: [opened]join(github.event.issue.labels.*.name, '') == '')needs-triagelabel usingactions/github-script@v7This ensures every new issue enters the triage pipeline regardless of how it was created, while preserving the existing template-based labeling for issues filed through the forms (which already have labels and won't match the
ifcondition).Describe any new or updated permissions being added
The workflow requests
issues: writepermission, scoped only to theensure-triage-labeljob. This is the minimum permission needed to add a label to an issue.Description of how you validated changes
Tested on a fork (Abogical/aws-cdk):
mainbranch so it becomes activeneeds-triage: workflow runHow the workflow works:
ensure-triage-labelworkflowifcondition checks whether the issue has any labelsneeds-triagebug, needs-triage), the condition is false and the job is skipped — no duplicate workChecklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license