diff options
author | Stan Hu <stanhu@gmail.com> | 2018-06-27 01:59:34 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-06-27 01:59:47 +0300 |
commit | 615e1807998b986582f3baf08aa3f1693294c52a (patch) | |
tree | ad9f2a4a3eda54a3b5d28cfb303d4b0bf05dbd75 /lib/bitbucket_server | |
parent | a5ca56eeeddc3cc1f1e92608b8b67e917d86837e (diff) |
More work towards importing pull requests
Diffstat (limited to 'lib/bitbucket_server')
-rw-r--r-- | lib/bitbucket_server/client.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bitbucket_server/client.rb b/lib/bitbucket_server/client.rb index 9f6958b568e..eb8b592e833 100644 --- a/lib/bitbucket_server/client.rb +++ b/lib/bitbucket_server/client.rb @@ -21,9 +21,10 @@ module BitbucketServer get_collection(path, :pull_request) end - 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) + def activities(project_key, repo, pull_request) + path = "/projects/#{project_key}/repos/#{repo}/pull-requests/#{pull_request}/activities" + + collection = get_collection(path, :activities) end def pull_request_diff(project_key, repo, pull_request) |