From 6b3b930ef5e6437528093e228f2cd07dec109ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Lo=CC=81pez=20Man=CC=83as?= Date: Wed, 11 Mar 2026 09:44:13 +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 c37de249..79cab122 100644 --- a/.github/workflows/triage-issue.yml +++ b/.github/workflows/triage-issue.yml @@ -45,11 +45,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