aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xosurl1
-rw-r--r--plugin/spec.vim1
2 files changed, 2 insertions, 0 deletions
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