Skip to content

Commit 5f0753d

Browse files
labudisCopilot
andcommitted
Add pagination instruction, update limits to 100 issues
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 152af9d commit 5f0753d

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

workflows/daily-issue-triage.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@ network: defaults
1818
safe-outputs:
1919
add-labels:
2020
target: "*"
21-
max: 25
21+
max: 500
2222
add-comment:
2323
target: "*"
24-
max: 10
24+
max: 100
2525
set-issue-type:
2626
target: "*"
27-
max: 10
27+
max: 100
2828
close-issue:
2929
target: "*"
3030
state-reason: "not_planned"
31-
max: 5
31+
max: 50
3232

3333
tools:
3434
web-fetch:
3535
github:
3636
toolsets: [issues, labels]
3737
min-integrity: none
3838

39-
timeout-minutes: 20
39+
timeout-minutes: 60
4040
---
4141

4242
# Daily Issue Triage
@@ -49,15 +49,19 @@ Do not make assumptions beyond what the issue content supports. Do not invent mi
4949

5050
## Step 1: Find untriaged issues
5151

52-
Use the `search_issues` tool to find open issues that need triage. An issue is considered untriaged if it has **no issue type set AND no labels applied**. Search for recently created issues (last 7 days) that match this criteria.
52+
Use the `search_issues` tool to find open issues that need triage. An issue is considered untriaged if it has **no issue type set AND no labels applied**. Search for open issues that match this criteria.
5353

54-
Query: `repo:${{ github.repository }} is:issue is:open no:label created:>={{date '-7d' 'YYYY-MM-DD'}}`
54+
Query: `repo:${{ github.repository }} is:issue is:open no:label`
55+
56+
Paginate through all results to find up to 100 untriaged issues. Do not stop at the first page.
5557

5658
From the results, filter out:
57-
- Issues that already have a triage comment (look for "🎯 Triage report" in comments).
59+
- Issues that already have a triage comment (look for "🎯 Triage report" in comments). **Never retriage an issue that has already been triaged.**
5860
- Issues created by bots (unless they look like real user issues).
61+
- Issues that have any labels already applied (even if they weren't applied by this workflow).
62+
- Issues that already have an issue type set.
5963

60-
Process up to **10 issues** per run. If there are more than 10, prioritize the oldest untriaged issues first.
64+
Process up to **100 issues** per run. If there are more than 100, prioritize the oldest untriaged issues first.
6165

6266
## Step 2: Triage each issue
6367

0 commit comments

Comments
 (0)