Skip to content

Commit

Permalink
Fix issue labeler to detect darwin/linux better: (#28631)
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Nov 2, 2023
1 parent e40d685 commit 1146703
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 1146703

Please sign in to comment.