From b57a29fd9dc49364890046be8df07eb77fa04155 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 16 Oct 2026 22:17:13 -1000 Subject: Ship the example tracker links commented out An unedited copy sent every #123, Closes: and Bug: mark to bugs.example.com, a link that is wrong for every site. --- custom/extensions/link-trailers.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'custom/extensions/link-trailers.lua') diff --git a/custom/extensions/link-trailers.lua b/custom/extensions/link-trailers.lua index 645c517..d5be662 100644 --- a/custom/extensions/link-trailers.lua +++ b/custom/extensions/link-trailers.lua @@ -30,9 +30,10 @@ local rules = { -- current page and works for the common virtual-root layout. { key = "Fixes", pattern = "^(%x%x%x%x%x%x%x+)", url = "./?id=%s" }, { key = "Reverts", pattern = "^(%x%x%x%x%x%x%x+)", url = "./?id=%s" }, - -- Closes: #123 and Bug: 123 point at the tracker. - { key = "Closes", pattern = "^#?(%d+)$", url = "https://bugs.example.com/?bug=%s" }, - { key = "Bug", pattern = "^#?(%d+)$", url = "https://bugs.example.com/?bug=%s" }, + -- Closes: #123 and Bug: 123 can point at the tracker once its address + -- stands in for the example one. + -- { key = "Closes", pattern = "^#?(%d+)$", url = "https://bugs.example.com/?bug=%s" }, + -- { key = "Bug", pattern = "^#?(%d+)$", url = "https://bugs.example.com/?bug=%s" }, -- { key = "CVE", pattern = "^CVE%-(%d%d%d%d%-%d+)$", -- url = "https://www.cve.org/CVERecord?id=CVE-%s" }, } -- cgit