Skip to content

Commit 0135bea

Browse files
alexhancockDaleSeo
andauthored
Update scripts/triage-new-issues.sh
Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com>
1 parent 21ce342 commit 0135bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/triage-new-issues.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ has_triage_labels() {
287287

288288
local has_type has_priority
289289
has_type=$(echo "$labels_json" | jq '[.[] | select(. == "bug" or . == "enhancement" or . == "question")] | length')
290-
has_priority=$(echo "$labels_json" | jq '[.[] | select(startswith("P"))] | length')
290+
has_priority=$(echo "$labels_json" | jq '[.[] | select(test("^P[0-3]$"))] | length')
291291

292292
[[ "$has_type" -gt 0 && "$has_priority" -gt 0 ]]
293293
}

0 commit comments

Comments
 (0)