From 41717abe5accfc9099659d31048a9b4c9dbd4c1f Mon Sep 17 00:00:00 2001 From: Nick Partridge Date: Thu, 20 Oct 2022 11:18:08 -0700 Subject: [PATCH] Update relabel.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improves `needs-team` auto labeling regex Improvement: - fix full-text matching (using `^` and `$`) - Adds `EUI` as a team - Prevent empty `Team:` search See matching example between the old and new below... | Test label text | Old regex | New regex | |-----------------|-----------|-----------| | `Team:test` | ✅ | ✅ | | `Team:` | ✅ | ❌ | | `:ml` | ✅ | ✅ | | `:mlTeam:test` | ✅ (both) | ❌ | | `EUI` | ❌ | ✅ | --- .github/relabel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/relabel.yml b/.github/relabel.yml index a737be356ce81..eb9a2fd557f45 100644 --- a/.github/relabel.yml +++ b/.github/relabel.yml @@ -1,3 +1,3 @@ issues: - missingLabel: needs-team - regex: ^(\:ml)|(Team:.*)$ \ No newline at end of file + regex: (^\:ml$)|(^Team:.+$)|(^EUI$)