You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workflows/issue-triage.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,15 @@ safe-outputs:
25
25
add-comment:
26
26
set-issue-type:
27
27
max: 1
28
+
close-issue:
29
+
target: "triggering"
30
+
state-reason: "not_planned"
31
+
max: 1
28
32
29
33
tools:
30
34
web-fetch:
31
35
github:
32
-
toolsets: [issues]
36
+
toolsets: [issues, labels]
33
37
min-integrity: none # This workflow is allowed to examine and comment on any issues
34
38
35
39
timeout-minutes: 10
@@ -47,18 +51,23 @@ Do not make assumptions beyond what the issue content supports. Do not invent mi
47
51
48
52
1. Retrieve the issue content using the `get_issue` tool.
49
53
2. Fetch any comments on the issue using the `get_issue_comments` tool.
50
-
3. Fetch the list of labels available in this repository using `gh label list`.
54
+
3. Fetch the list of labels available in this repository using the `list_labels` tool.
51
55
4. Search for similar issues using the `search_issues` tool.
52
56
53
57
## Step 2: Spam and quality check
54
58
55
-
**Spam and invalid issues:** If the issue is obviously spam, bot-generated, gibberish, or a test issue, add a one-sentence comment explaining why and exit the workflow. Do not apply metadata to these issues.
59
+
**Spam and invalid issues:** If the issue is obviously spam, bot-generated, gibberish, or a test issue:
60
+
- Add a one-sentence comment explaining why.
61
+
- Apply the `invalid` or `spam` label if one exists in the repository.
62
+
- Close the issue as "not planned."
63
+
- Do not apply any other metadata. Exit the workflow.
56
64
57
65
**Incomplete issues:** If the issue lacks enough detail for meaningful triage, add a comment that politely asks the author to provide the missing information:
58
66
- For bugs: steps to reproduce, expected vs actual behavior, logs/errors, environment details.
59
67
- For other issue types: equivalent details that would make the report actionable.
68
+
- Apply a `needs-info` or `question` label if one exists in the repository.
60
69
61
-
Be specific about what is missing and why it is needed. Do not attempt to apply labels, type, or fields to incomplete issues.
70
+
Be specific about what is missing and why it is needed. Do not attempt to apply type or other labels to incomplete issues.
62
71
63
72
If the issue has sufficient detail, proceed to Step 3.
64
73
@@ -95,7 +104,14 @@ If the issue has sufficient detail, proceed to Step 3.
95
104
- If a high-confidence duplicate is found and the repository has a `duplicate` label, apply it.
96
105
- If no similar issues are found, state that explicitly in your report.
97
106
98
-
### 3e: Additional analysis
107
+
### 3e: Assess coding agent suitability
108
+
109
+
Assess whether the issue is suitable for automated coding agent assignment:
0 commit comments