diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2022-08-05 10:25:15 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-03-28 17:08:29 +0100 |
commit | 9cd6d6cf91d1349809a72d3017c47e904a33fe92 (patch) | |
tree | fa08c2d62a6bf5a1f534c97583ee308148f5ba43 /abbrevURL | |
parent | 4925f7b8775961ede82f5c1e5a230f52fcdb7be6 (diff) | |
download | vim-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-x | abbrevURL | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |