From 9cd6d6cf91d1349809a72d3017c47e904a33fe92 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 5 Aug 2022 10:25:15 +0200 Subject: feat(osurl,abbrevURL): include GitHub discussions. https://github.com/encode/httpx/discussions/1735 leads to gh#encode/httpx!1735 --- abbrevURL | 1 + 1 file changed, 1 insertion(+) (limited to 'abbrevURL') diff --git a/abbrevURL b/abbrevURL index 6f938e8..b1c0c2d 100755 --- a/abbrevURL +++ b/abbrevURL @@ -12,6 +12,7 @@ end str = str:gsub("https?://github.com/(.*)/issues/(%d+)", "gh#%1#%2") str = str:gsub("https?://github.com/(.*)/pull/(%d+)", "gh#%1#%2") +str = str:gsub("https?://github.com/(.*)/discussions/(%d+)", "gh#%1!%2") str = str:gsub("https?://github.com/(.*)/commit/(%w+)", function (r, i) return "gh#" .. r .. "@" .. i:sub(1, 12) end) -- cgit