Skip to content

Commit f392d90

Browse files
authored
chore: Update auto triage guidelines (#3882)
1 parent 7b1a151 commit f392d90

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,20 @@ 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 `kind/*` and `priority/*` patterns.
95+
labels according to the format `type: *` and `priority: *` patterns.
96+
If the priority is determined to be more urgent than p2 (e.g. p0 or p1), mark the issue
97+
as p2 and add a comment in the issue with the reason. The comment should ping
98+
@blakeli0, @lqiu96, and @zhumin8 to notify them.
9699
4. Apply the selected labels to this issue using:
97100
`gh issue edit "${ISSUE_NUMBER}" --add-label "label1,label2"`
98-
5. If the "status/needs-triage" label is present, remove it using:
99-
`gh issue edit "${ISSUE_NUMBER}" --remove-label "status/needs-triage"`
100101
101102
## Guidelines
102103
104+
- If there are already labels for `type: *` and `priority: *` set on the issue, do not modify the labels
103105
- Only use labels that already exist in the repository
104-
- Do not add comments or modify the issue content
106+
- Do not modify the original issue content
105107
- Triage only the current issue
106108
- Assign all applicable labels based on the issue content
107109
- Reference all shell variables as "${VAR}" (with quotes and braces)
@@ -118,4 +120,4 @@ jobs:
118120
repo: '${{ github.repository }}'.split('/')[1],
119121
issue_number: '${{ github.event.issue.number }}',
120122
body: 'There is a problem with the Gemini CLI issue triaging. Please check the [action logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.'
121-
})
123+
})

.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 determined 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: *` set on the issue, do not modify the labels
111109
- Only use existing repository labels
112-
- Do not add comments
110+
- Do not modify the original issue content
113111
- Triage each issue independently
114112
- Reference all shell variables as "${VAR}" (with quotes and braces)

0 commit comments

Comments
 (0)