From 7bddf7d6798dac77fb1331a89cd2dcf9415e57af Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 2 Apr 2019 13:06:18 +0200 Subject: feat(osurl): add BitBucket --- osurl | 1 + plugin/spec.vim | 1 + 2 files changed, 2 insertions(+) diff --git a/osurl b/osurl index b9df666..3413177 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", + ["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 c466597..0978c60 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://bitbucket.org/\(.*\)/issues/\(\d\+\)!bt#\1#\2!e s!https://build.suse.com/request/show/\(\d*\)!bds#\1!e s!https://build.opensuse.org/request/show/\(\d*\)!bdo#\1!e s!https://bugzilla.opensuse.org/\(show_bug.cgi?id=\)\?\(\d*\)!boo#\2!e -- cgit