From dbf59ccb069ae5376be7da223cb5a92718938c46 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 26 Apr 2019 15:52:14 +0200 Subject: feat(osurl): add gitlab.com reference gl#project#ID --- osurl | 1 + plugin/spec.vim | 1 + 2 files changed, 2 insertions(+) diff --git a/osurl b/osurl index 3413177..8286717 100755 --- a/osurl +++ b/osurl @@ -21,6 +21,7 @@ local patterns = { ["bdo#%NUM"] = "https://build.opensuse.org/request/show/%1", ["jsc#%JIRID"] = "https://jira.suse.de/browse/%1", ["gh#%NONHASH#%WORD"] = "https://github.com/%1/issues/%2", + ["gl#%NONHASH#%WORD"] = "https://gitlab.com/%1/issues/%2", ["bt#%NONHASH#%WORD"] = "https://bitbucket.org/%1/issues/%2", ["lp#%NUM"] = "https://launchpad.net/bugs/%1", ["rh#%NUM"] = "https://bugzilla.redhat.com/show_bug.cgi?id=%1", diff --git a/plugin/spec.vim b/plugin/spec.vim index 2a226de..966e679 100644 --- a/plugin/spec.vim +++ b/plugin/spec.vim @@ -1,5 +1,6 @@ function! ReplaceURLs() s!https://github.com/\(.*\)/\(issues\|pull\)/\(\d\+\)!gh#\1#\3!e + s!https://gitlab.com/\(.*\)/\(issues\|pull\)/\(\d\+\)!gl#\1#\3!e s!https://bitbucket.org/\(.*\)/issues/\(\d\+\)!bt#\1#\2!e s!https://build.suse.de/request/show/\(\d*\)!bds#\1!e s!https://build.opensuse.org/request/show/\(\d*\)!bdo#\1!e -- cgit