From e83e5c9592b399050d9485ea007b6030909ad2f4 Mon Sep 17 00:00:00 2001 From: SkylerHadaway Date: Mon, 12 Feb 2024 14:55:00 -0500 Subject: [PATCH] fix: differentiate bitbucket cloud and server pull request activities api --- atlassian/bitbucket/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atlassian/bitbucket/__init__.py b/atlassian/bitbucket/__init__.py index a412d141d..9967fb062 100644 --- a/atlassian/bitbucket/__init__.py +++ b/atlassian/bitbucket/__init__.py @@ -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