diff options
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) |