Skip to content

Commit 4c6e76a

Browse files
authored
ci: limit issue triage to single priority and remove triage label (#1666)
1 parent 14a3f78 commit 4c6e76a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/triage-issue.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,15 @@ jobs:
5959
run: |
6060
# Convert comma-separated labels to gh command arguments
6161
IFS=',' read -ra ADDR <<< "${{ steps.run_script.outputs.labels }}"
62+
priority_added=false
6263
for i in "${ADDR[@]}"; do
6364
# Trim whitespace
6465
label=$(echo "$i" | xargs)
65-
# Only add priority labels as requested
66-
if [[ "$label" == priority:* ]]; then
66+
# Only add the first priority label found
67+
if [[ "$label" == priority:* ]] && [ "$priority_added" = false ]; then
6768
gh issue edit "$ISSUE_NUMBER" --add-label "$label"
69+
priority_added=true
6870
fi
69-
done
71+
done
72+
# Remove 'triage me' label
73+
gh issue edit "$ISSUE_NUMBER" --remove-label "triage me" || true

0 commit comments

Comments
 (0)