We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21ce342 commit 0135beaCopy full SHA for 0135bea
scripts/triage-new-issues.sh
@@ -287,7 +287,7 @@ has_triage_labels() {
287
288
local has_type has_priority
289
has_type=$(echo "$labels_json" | jq '[.[] | select(. == "bug" or . == "enhancement" or . == "question")] | length')
290
- has_priority=$(echo "$labels_json" | jq '[.[] | select(startswith("P"))] | length')
+ has_priority=$(echo "$labels_json" | jq '[.[] | select(test("^P[0-3]$"))] | length')
291
292
[[ "$has_type" -gt 0 && "$has_priority" -gt 0 ]]
293
}
0 commit comments