Skip to content

Commit 4c4b11b

Browse files
committed
chore: Add more detailed instructions for triaging issues
1 parent 785fe4c commit 4c4b11b

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

.github/workflows/gemini-issue-automated-triage.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,14 @@ jobs:
9090
1. Run: `gh label list` to get all available labels.
9191
2. Review the issue title and body provided in the environment
9292
variables: "${ISSUE_TITLE}" and "${ISSUE_BODY}".
93-
3. Classify issues by their kind (bug, enhancement, documentation,
93+
3. Classify issues by their type (bug, enhancement, documentation,
9494
cleanup, etc) and their priority (p0, p1, p2, p3). Set the
95-
labels accoridng to the format `type: *` and `priority: *` patterns.
95+
labels according to the format `type: *` and `priority: *` patterns.
9696
If the priority is decided to be more urgent than p2 (e.g. p0 or p1), mark the issue
97-
as p2 and leave a comment in the issue with the reason. The comment should ping
97+
as p2 and add a comment in the issue with the reason. The comment should ping
9898
@blakeli0, @lqiu96, and @zhumin8 to notify them.
9999
4. Apply the selected labels to this issue using:
100100
`gh issue edit "${ISSUE_NUMBER}" --add-label "label1,label2"`
101-
5. If the "status/needs-triage" label is present, remove it using:
102-
`gh issue edit "${ISSUE_NUMBER}" --remove-label "status/needs-triage"`
103101
104102
## Guidelines
105103

.github/workflows/gemini-issue-scheduled-triage.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ jobs:
4141
NO_LABEL_ISSUES="$(gh issue list --repo "${GITHUB_REPOSITORY}" \
4242
--search 'is:open is:issue no:label' --json number,title,body)"
4343
44-
echo '🏷️ Finding issues that need triage...'
45-
NEED_TRIAGE_ISSUES="$(gh issue list --repo "${GITHUB_REPOSITORY}" \
46-
--search 'is:open is:issue label:"status/needs-triage"' --json number,title,body)"
47-
4844
echo '🔄 Merging and deduplicating issues...'
4945
ISSUES="$(echo "${NO_LABEL_ISSUES}" "${NEED_TRIAGE_ISSUES}" | jq -c -s 'add | unique_by(.number)')"
5046
@@ -98,17 +94,19 @@ jobs:
9894
1. Run: `gh label list`
9995
2. Check environment variable: "${ISSUES_TO_TRIAGE}" (JSON array
10096
of issues)
101-
3. For each issue, apply labels:
102-
`gh issue edit "${ISSUE_NUMBER}" --add-label "label1,label2"`.
103-
If available, set labels that follow the `kind/*`, `area/*`,
104-
and `priority/*` patterns.
105-
4. For each issue, if the `status/needs-triage` label is present,
106-
remove it using:
107-
`gh issue edit "${ISSUE_NUMBER}" --remove-label "status/needs-triage"`
97+
3. Classify each issue by their type (bug, enhancement, documentation,
98+
cleanup, etc) and their priority (p0, p1, p2, p3). Set the
99+
labels according to the format `type: *` and `priority: *` patterns.
100+
If the priority is decided to be more urgent than p2 (e.g. p0 or p1), mark the issue
101+
as p2 and add a comment in the issue with the reason. The comment should ping
102+
@blakeli0, @lqiu96, and @zhumin8 to notify them.
103+
4. Apply the selected labels to this issue using:
104+
`gh issue edit "${ISSUE_NUMBER}" --add-label "label1,label2"`
108105
109106
## Guidelines
110107
108+
- If there are already labels for `type: *` and `priority: *`, do not modify them
111109
- Only use existing repository labels
112-
- Do not add comments
110+
- Do not add comments or modify the issue content
113111
- Triage each issue independently
114112
- Reference all shell variables as "${VAR}" (with quotes and braces)

0 commit comments

Comments
 (0)