summaryrefslogtreecommitdiff
path: root/lib/bitbucket_server
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket_server')
-rw-r--r--lib/bitbucket_server/client.rb7
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)