--- description: | Triage assistant for new and reopened issues. Reads the issue and its comments, classifies the issue type when it is unset, applies relevant existing labels, flags likely duplicate or related issues, asks the author for missing information only when it is genuinely needed, and suggests handing well-scoped, actionable issues to Copilot. Existing labels are preserved and issues are never closed automatically. on: issues: types: [opened, reopened] reaction: eyes permissions: read-all network: defaults safe-outputs: set-issue-type: max: 1 issue-intent: true add-labels: max: 5 issue-intent: true add-comment: max: 1 assign-to-agent: name: copilot allowed: [copilot] max: 1 target: triggering issue-intent: true tools: github: toolsets: [issues, labels] timeout-minutes: 15 --- # Issue triage Triage issue #${{ github.event.issue.number }} in ${{ github.repository }}. Base every decision only on what the issue and its comments actually say. Do not invent missing context or guess beyond the evidence. Keep the issue's existing labels; only add labels. Never close the issue. Read the issue and its comments, and discover this repository's available issue types and existing labels at runtime before acting. Search for similar issues using the key terms from the title and body. Your goals: - **Classify the issue type.** If the issue already has a type, leave it. Otherwise set the single best-fitting type from those this repository offers. If it is too ambiguous to type confidently, leave it untyped. - **Add relevant labels.** Apply existing repository labels that describe the issue's nature and area. Only use labels that already exist; never invent labels, and do not re-add labels the issue already has. If nothing fits, add none. - **Flag likely duplicates or related issues.** If the issue is very likely a duplicate of an existing one, flag it and name the candidate rather than acting on it directly; never close it. Leave merely adjacent issues alone. - **Request missing information only when genuinely needed.** If the issue lacks the detail required to act on it, post a single, specific comment asking the author for exactly what is missing. Otherwise post nothing — never summarize your triage or report what you did. - **Suggest handing off to Copilot.** When the issue is well-scoped and actionable, suggest assigning it to Copilot. - **When nothing needs to change, take no action.**