We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14a3f78 commit 4c6e76aCopy full SHA for 4c6e76a
.github/workflows/triage-issue.yml
@@ -59,11 +59,15 @@ jobs:
59
run: |
60
# Convert comma-separated labels to gh command arguments
61
IFS=',' read -ra ADDR <<< "${{ steps.run_script.outputs.labels }}"
62
+ priority_added=false
63
for i in "${ADDR[@]}"; do
64
# Trim whitespace
65
label=$(echo "$i" | xargs)
- # Only add priority labels as requested
66
- if [[ "$label" == priority:* ]]; then
+ # Only add the first priority label found
67
+ if [[ "$label" == priority:* ]] && [ "$priority_added" = false ]; then
68
gh issue edit "$ISSUE_NUMBER" --add-label "$label"
69
+ priority_added=true
70
fi
- done
71
+ done
72
+ # Remove 'triage me' label
73
+ gh issue edit "$ISSUE_NUMBER" --remove-label "triage me" || true
0 commit comments