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
  • Loading branch information
SkylerSalvato committed Feb 12, 2024
1 parent da1c38c commit e83e5c9
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 e83e5c9

Please sign in to comment.