Improve issue triage template with structured triage flow#332
Merged
dsyme merged 8 commits intoMay 12, 2026
Conversation
- Add set-issue-type and set-issue-field safe outputs - Restructure flow: gather context, quality check, triage, apply - Add quality gate for incomplete issues (ask for missing info) - Add issue type assignment (skip if already set) - Add issue field assignment (skip if already set) - Add duplicate detection with confidence levels (duplicate vs related) - Add structured triage report format with assessment table - Add label safety warning (labels can trigger automation) - Add explicit guardrails: don't invent context, don't overwrite metadata - Clarify comment audience is maintainers, not issue authors - Keep web search, debugging strategies, sub-task breakdown - Update docs to reflect new capabilities Inspired by patterns from the GitHub Issues triage agent. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep field-related instructions in the prompt body so the agent can still recommend field values in the triage report. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Instruct agent to apply duplicate label when high-confidence duplicate is detected and the label exists in the repo - Remove set_issue_field from Step 4 (compiler does not support it yet) - Keep field guidance in Step 3c for comment-only recommendations Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add close-issue safe output to auto-close spam as not_planned - Apply invalid/spam label to spam issues - Apply needs-info/question label to incomplete issues - Add coding agent suitability assessment (Suitable/Needs more info/Not suitable) - Replace gh label list bash with labels toolset for richer metadata - Update Step 4 with close_issue action Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
Gap:
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
reneexeener
approved these changes
May 12, 2026
Co-authored-by: Renee Xu <reneexeener@github.com>
dsyme
approved these changes
May 12, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Improves the issue triage workflow template by incorporating patterns from the GitHub Issues triage agent and iterating based on live testing.
Changes
New safe outputs:
set-issue-typefor issue type assignmentclose-issuewithstate-reason: "not_planned"to auto-close spamlabelstoolset for richer label metadata (replacesgh label listbash)Restructured flow (was 8 overlapping steps, now 4 clear phases):
New capabilities:
invalid/spamlabelneeds-infolabel)Guardrails:
Preserved from original:
Testing
Tested with 13 issues across 3 rounds in a private test repository. All runs completed successfully.
Round 1
Round 2
Improvements made from testing
duplicatelabel; added explicit instructionset-issue-field(compiler does not support it yet)close-issuesafe outputinvalid/spamlabel for spam,needs-infolabel for incomplete issuesgh label listbash withlabelstoolsetRound 3
Tested in
github/triage-agent(different repo with richer label set).invalidlabel appliedquestionlabel, asked for specifics, refused to triagebug+accuracy+triage agent, coding agent: Suitable, found related issueaccuracy+triage agent, coding agent: Needs more infoIssue found and fixed: