Skip to content

Commit

Permalink
fix: differentiate bitbucket cloud and server pull request activities…
Browse files Browse the repository at this point in the history
… api (#1336)
  • Loading branch information
SkylerSalvato authored Feb 13, 2024
1 parent da1c38c commit 5c54e5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion atlassian/bitbucket/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,10 @@ def get_pull_requests_activities(
:param start:
:return:
"""
url = "{}/activity".format(self._url_pull_request(project_key, repository_slug, pull_request_id))
if self.cloud:
url = "{}/activity".format(self._url_pull_request(project_key, repository_slug, pull_request_id))
else:
url = "{}/activities".format(self._url_pull_request(project_key, repository_slug, pull_request_id))
params = {}
if start:
params["start"] = start
Expand Down

0 comments on commit 5c54e5d

Please sign in to comment.