mirror of
https://github.com/adusak/bitbucket-git-helpers.plugin.zsh.git
synced 2026-02-24 14:04:52 +01:00
Update git-bb-list-pull-requests
This commit is contained in:
@@ -12,11 +12,12 @@ require_relative 'bbhelpers'
|
|||||||
def construct_PR_list_URL
|
def construct_PR_list_URL
|
||||||
remote = git_remote()
|
remote = git_remote()
|
||||||
bbloc = remote.index('bitbucket.org')
|
bbloc = remote.index('bitbucket.org')
|
||||||
if not bbloc
|
if not bbloc
|
||||||
puts "Only works for repositories with their origin remote on bitbucket.org"
|
host = repo_url
|
||||||
exit 1
|
else
|
||||||
|
host = remote[bbloc..-5].sub(':','/')
|
||||||
end
|
end
|
||||||
return "https://#{remote[bbloc..-5].sub(':','/')}/pull-requests/"
|
return "https://#{host}/pull-requests/"
|
||||||
end
|
end
|
||||||
|
|
||||||
if ARGV.length > 0
|
if ARGV.length > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user