Skip to content

Commit 5c54e5d

Browse files
fix: differentiate bitbucket cloud and server pull request activities api (#1336)
1 parent da1c38c commit 5c54e5d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

atlassian/bitbucket/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,10 @@ def get_pull_requests_activities(
17811781
:param start:
17821782
:return:
17831783
"""
1784-
url = "{}/activity".format(self._url_pull_request(project_key, repository_slug, pull_request_id))
1784+
if self.cloud:
1785+
url = "{}/activity".format(self._url_pull_request(project_key, repository_slug, pull_request_id))
1786+
else:
1787+
url = "{}/activities".format(self._url_pull_request(project_key, repository_slug, pull_request_id))
17851788
params = {}
17861789
if start:
17871790
params["start"] = start

0 commit comments

Comments
 (0)