diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
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.
Diffstat (limited to 'custom/extensions/link-commits.lua')
| -rw-r--r-- | custom/extensions/link-commits.lua | 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 4 insertions, 2 deletions
diff --git a/custom/extensions/link-commits.lua b/custom/extensions/link-commits.lua index 8dc0bc3..31d2e3a 100644 --- a/custom/extensions/link-commits.lua +++ b/custom/extensions/link-commits.lua @@ -31,7 +31,9 @@ local objects = { -- URL where %s is replaced by that capture, percent-encoded. The whole match -- is what gets shown and the capture is only what goes into the URL. Rules are -- tried in order and the leftmost match wins, so put the more specific --- patterns first, and an empty list leaves only object names linked. +-- patterns first, and an empty list leaves only object names linked. The +-- examples are commented out, so an unedited copy links object names alone, +-- and the tracker one wants this site's own address before it goes in. -- -- Lua patterns are not regular expressions. The reference is -- https://www.lua.org/manual/5.1/manual.html#5.4.1 @@ -40,7 +42,7 @@ local objects = { -- '&', '<' and '>' rather than the bare characters, and keep a -- pattern from ending part way through one. local rules = { - { pattern = "#(%d+)", url = "https://bugs.example.com/?bug=%s" }, + -- { pattern = "#(%d+)", url = "https://bugs.example.com/?bug=%s" }, -- { pattern = "CVE%-(%d%d%d%d%-%d+)", -- url = "https://www.cve.org/CVERecord?id=CVE-%s" }, -- { pattern = "!(%d+)", |
