From df20bae80e7418fb122c4d3aea65a5ea853bea11 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 15 Aug 2024 15:57:42 -0400 Subject: [PATCH] danger: Don't look for `#NNNN`, as it's not specific enough (#16313) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR updates the regex we use to search for issues to not search for `#NNNN`, as it's not specific enough. It currently catches issue numbers from other repos, which are then linked to random Zed issues/PRs that happen to have the same number: Screenshot 2024-08-15 at 3 50 29 PM As well as catching PRs: Screenshot 2024-08-15 at 3 48 59 PM Given that: 1. We can't distinguish any given `#NNNN` as an issue _and_ can't ensure it belongs to the Zed repo 2. Any issue/PR referenced as `#NNNN` will already create a backlink It seems that looking for these is causing more noise than signal. Release Notes: - N/A --- script/danger/dangerfile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/danger/dangerfile.ts b/script/danger/dangerfile.ts index db3a13822b..be014dbe1d 100644 --- a/script/danger/dangerfile.ts +++ b/script/danger/dangerfile.ts @@ -37,7 +37,7 @@ if (!hasReleaseNotes) { } const ISSUE_LINK_PATTERN = new RegExp( - "(?:https://github\\.com/[\\w-]+/[\\w-]+/issues/\\d+|#\\d+)", + "https://github\\.com/[\\w-]+/[\\w-]+/issues/\\d+", "g", );