Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/triage-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@ jobs:
run: |
# Convert comma-separated labels to gh command arguments
IFS=',' read -ra ADDR <<< "${{ steps.run_script.outputs.labels }}"
priority_added=false
for i in "${ADDR[@]}"; do
# Trim whitespace
label=$(echo "$i" | xargs)
# Only add priority labels as requested
if [[ "$label" == priority:* ]]; then
# Only add the first priority label found
if [[ "$label" == priority:* ]] && [ "$priority_added" = false ]; then
gh issue edit "$ISSUE_NUMBER" --add-label "$label"
priority_added=true
fi
done
done
# Remove 'triage me' label
gh issue edit "$ISSUE_NUMBER" --remove-label "triage me" || true
Loading