Skip to content

Commit cdcadfa

Browse files
Fix issue labeler to detect darwin/linux better: (project-chip#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".
1 parent d62d80b commit cdcadfa

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/issue-labeler.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
darwin:
2-
- "(ios|homepod|darwin|mac|macos)"
2+
# Make sure we don't match random words that contain "mac" inside.
3+
#
4+
# Make sure we don't match random words that contain "ios" inside
5+
# (like "kiosk" or whatnot), but do allow matching "ios8" and things
6+
# like that.
7+
#
8+
# \\b means "word boundary"
9+
# (?![a-z]) means "there is no next char in the range a-z".
10+
- "/(\\bios(?![a-z])|homepod|darwin|\\bmac\\b|macos)/i"
311

412
linux:
5-
- "(linux)"
13+
- "/(linux)/i"
614

715
# Special Keywords for Cert Blockers
816
air purifiers:

0 commit comments

Comments
 (0)