aboutsummaryrefslogtreecommitdiffstats
path: root/abbrevURL
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2022-08-05 10:25:15 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-03-28 17:08:29 +0100
commit9cd6d6cf91d1349809a72d3017c47e904a33fe92 (patch)
treefa08c2d62a6bf5a1f534c97583ee308148f5ba43 /abbrevURL
parent4925f7b8775961ede82f5c1e5a230f52fcdb7be6 (diff)
downloadvim-suse-changes-9cd6d6cf91d1349809a72d3017c47e904a33fe92.tar.gz
feat(osurl,abbrevURL): include GitHub discussions.
https://github.com/encode/httpx/discussions/1735 leads to gh#encode/httpx!1735
Diffstat (limited to 'abbrevURL')
-rwxr-xr-xabbrevURL1
1 files changed, 1 insertions, 0 deletions
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)