Sub topic 12
A repeatable triage workflow
This chapter assumes you can create issues, apply labels, assign owners, and set milestones, and that you know the search qualifiers from the earlier chapters. Here you combine those pieces into one routine that you can run on a schedule.
What triage is
Triage is the act of reviewing new issues and deciding what happens to each one. Without it, issues pile up, duplicates multiply, and reporters wait for a reply that never comes. A good triage routine gives every issue one of a small set of outcomes, and it does so within a predictable time.
The triage loop
Each new issue passes through the same steps.
- Find the queue. Search for issues that nobody has handled yet.
- Check completeness. Look for steps to reproduce, expected behavior, and actual behavior.
- Check for duplicates. Search by keywords before deciding the issue is new.
- Categorize. Add one type label (such as
bugorenhancement) and one priority label. - Decide. Assign an owner and milestone, defer the issue, or close it with an explanation.
- Clear the marker. Remove
needs-triageso the issue leaves the queue.
Build the queue with a label and a search
The needs-triage label marks issues waiting for review. Add it automatically to every new issue (the automation chapter shows how). Then the queue is a saved search:
is:issue is:open label:needs-triage sort:created-ascSorting oldest first keeps older reports from being forgotten. Two more searches are useful for finding gaps:
is:issue is:open no:assignee label:bug
is:issue is:open label:needs-info updated:<2026-11-01The first finds bugs with no owner. The second finds issues that have been waiting for a reporter's answer since before the given date.
Define your labels
A routine only works if the label set is small and has clear meanings. A common layout:
| Group | Example labels | Rule |
|---|---|---|
| Status | `needs-triage`, `needs-info` | At most one at a time |
| Type | `bug`, `enhancement`, `question` | Exactly one |
| Priority | `p1`, `p2`, `p3` | Set during triage |
| Resolution | `duplicate`, `wontfix` | Applied when closing |
Write these rules in a CONTRIBUTING.md file or a triage guide so every maintainer applies them the same way.
Handle common cases
Use consistent replies. They save time and tell reporters what to expect.
gh issue comment 42 --body "Thanks for the report. Could you share the exact input and your version?"
gh issue edit 42 --add-label "needs-info" --remove-label "needs-triage"
gh issue close 57 --reason "not planned" --comment "Duplicate of #42."Common errors
- Closing without a reason. Always leave a comment, even a short one.
- Too many labels. If maintainers cannot remember what a label means, they will stop using it.
- No time limit on
needs-info. Decide how long you wait, such as 14 days, and then close the issue with a note that it can be reopened. - Assigning everything. Assign only issues someone will start soon. Unowned backlog items are fine.
- Triage by one person only. Rotate the duty so the routine survives vacations.
Exercise
Write a search query that lists open issues labeled needs-info that were last updated before 2026-11-01, and say why a maintainer would run it.
Show answer
is:issue is:open label:needs-info updated:<2026-11-01 . A maintainer runs it to find issues where the reporter has not replied for a long time, so they can send a reminder or close them under the team's waiting-time rule.
Exercise
A new issue has clear steps to reproduce, and it is not a duplicate. What are the next triage steps?
Show answer
Add one type label and one priority label. Then decide: if the work will start soon, assign an owner and set a milestone. If it will wait, leave it in the backlog. If the team will not do it, explain and close it. Finally, remove needs-triage.