From 182342462de7d5d4ebcbe912b73609183b26b0b1 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 10 Aug 2023 15:27:17 -0400 Subject: [PATCH] Fix issue labeler to detect darwin/linux better: (#28631) 1. Make the matches case-insensitive, so "Linux" matches the "linux" label. 2. Add some boundary-checking so "macro" or "kiosk" don't lead to things being labeled "darwin". --- .github/issue-labeler.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/issue-labeler.yml b/.github/issue-labeler.yml index b4b6f70c8ada15..210ae86a24fbf6 100644 --- a/.github/issue-labeler.yml +++ b/.github/issue-labeler.yml @@ -1,8 +1,16 @@ darwin: - - "(ios|homepod|darwin|mac|macos)" + # Make sure we don't match random words that contain "mac" inside. + # + # Make sure we don't match random words that contain "ios" inside + # (like "kiosk" or whatnot), but do allow matching "ios8" and things + # like that. + # + # \\b means "word boundary" + # (?![a-z]) means "there is no next char in the range a-z". + - "/(\\bios(?![a-z])|homepod|darwin|\\bmac\\b|macos)/i" linux: - - "(linux)" + - "/(linux)/i" # Special Keywords for Cert Blockers air purifiers: