From 80dc49c8cb0f272460f7a9b24cc81f8f63fd6183 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 20 Dec 2021 15:15:34 +0100 Subject: feat(osurl,abbrevURL): better documentation and updated GitLab URLs. --- abbrevURL | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'abbrevURL') diff --git a/abbrevURL b/abbrevURL index 24f74c9..21a391e 100755 --- a/abbrevURL +++ b/abbrevURL @@ -1,4 +1,7 @@ #!/usr/bin/lua +-- Abbreviate according to +-- https://en.opensuse.org/openSUSE:Packaging_Patches_guidelines#Current_set_of_abbreviations + local str = '' if #arg == 0 then @@ -12,6 +15,8 @@ str = str:gsub("https?://github.com/(.*)/pull/(%d+)", "gh#%1#%2") str = str:gsub("https?://gitlab.com/(.*)/-/issues/(%d+)", "gl#%1#%2") str = str:gsub("https?://gitlab.com/(.*)/issues/(%d+)", "gl#%1#%2") str = str:gsub("https?://gitlab.com/(.*)/pull/(%d+)", "gl#%1#%2") +str = str:gsub("https?://gitlab.com/(.*)/-/pull/(%d+)", "gl#%1#%2") +str = str:gsub("https?://gitlab.com/(.*)/-/merge-requests/(%d+)", "gl#%1#%2") str = str:gsub("https?://sourceforge.net/support/tracker.php%?aid=(%d+)", "sh#%1") str = str:gsub("https?://sf.net/support/tracker.php%?aid=(%d+)", "sh#%1") str = str:gsub("https?://sourceforge.net/p/(.*)/patches/(%d+)/", "shp#%1#%2") -- cgit