From a8631a109e5a397c859c7b37e7167171a10d06ec Mon Sep 17 00:00:00 2001 From: Bryan Morgan Date: Thu, 15 Jan 2026 09:26:00 -0500 Subject: [PATCH] fix(automation): correct status/need-issue label matching wildcard (#16727) --- .github/scripts/pr-triage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/pr-triage.sh b/.github/scripts/pr-triage.sh index 2052406869..cca12747b7 100755 --- a/.github/scripts/pr-triage.sh +++ b/.github/scripts/pr-triage.sh @@ -68,7 +68,7 @@ process_pr_optimized() { fi else echo " ⚠️ No linked issue found for PR #${PR_NUMBER}" - if [[ ",${CURRENT_LABELS}," != ",status/need-issue,"* ]]; then + if [[ ",${CURRENT_LABELS}," != *",status/need-issue,"* ]]; then echo " ➕ Adding status/need-issue label" LABELS_TO_ADD="status/need-issue" fi @@ -82,7 +82,7 @@ process_pr_optimized() { else echo " 🔗 Found linked issue #${ISSUE_NUMBER}" - if [[ ",${CURRENT_LABELS}," == ",status/need-issue,"* ]]; then + if [[ ",${CURRENT_LABELS}," == *",status/need-issue,"* ]]; then echo " ➖ Removing status/need-issue label" LABELS_TO_REMOVE="status/need-issue" fi