From b32db1af2f80e8c10dd7317021ebb15c1c38bbf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Lo=CC=81pez=20Man=CC=83as?= Date: Thu, 19 Mar 2026 09:52:23 +0100 Subject: [PATCH] ci: limit issue triage to single priority and remove triage label --- .github/workflows/triage-issue.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/triage-issue.yml b/.github/workflows/triage-issue.yml index 103a2f979..6217d6467 100644 --- a/.github/workflows/triage-issue.yml +++ b/.github/workflows/triage-issue.yml @@ -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 \ No newline at end of file + done + # Remove 'triage me' label + gh issue edit "$ISSUE_NUMBER" --remove-label "triage me" || true \ No newline at end of file