diff options
author | Stan Hu <stanhu@gmail.com> | 2018-06-26 09:13:32 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-06-26 09:13:32 +0300 |
commit | 7b94e805c70a57c53e669f714b2ea565a2d82499 (patch) | |
tree | 3be7801c782b2277d1a57dad61c3f702510a5456 /lib/bitbucket_server | |
parent | 14d0bd5913127dbd1c1fffa56bd0e7f78ab2d906 (diff) |
Fix pull request URLs
Diffstat (limited to 'lib/bitbucket_server')
-rw-r--r-- | lib/bitbucket_server/client.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/bitbucket_server/client.rb b/lib/bitbucket_server/client.rb index 27117fa0dcd..9f6958b568e 100644 --- a/lib/bitbucket_server/client.rb +++ b/lib/bitbucket_server/client.rb @@ -16,18 +16,18 @@ module BitbucketServer get_collection(path, :comment) end - def pull_requests(project_key, repository_slug) - path = "/projects/#{project}/repos/#{repo}/pull-requests?state=ALL" + def pull_requests(project_key, repo) + path = "/projects/#{project_key}/repos/#{repo}/pull-requests?state=ALL" get_collection(path, :pull_request) end - def pull_request_comments(repo, pull_request) - path = "/repositories/#{repo}/pullrequests/#{pull_request}/comments" + def pull_request_comments(project_key, repo, pull_request) + path = "/projects/#{project_key}/repos/#{repo}/pull-requests/#{pull_request}/comments" get_collection(path, :pull_request_comment) end - def pull_request_diff(repo, pull_request) - path = "/repositories/#{repo}/pullrequests/#{pull_request}/diff" + def pull_request_diff(project_key, repo, pull_request) + path = "/projects/#{project_key}/repos/#{repo}/pull-requests/#{pull_request}/diff" connection.get(path) end |