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