From 2edb4395a89e9055c0b1b6215604d0546129fd77 Mon Sep 17 00:00:00 2001 From: "Nuetzi, Gabriel" Date: Wed, 10 May 2023 17:02:30 +0200 Subject: [PATCH 1/3] feat: Add update pull-request call --- atlassian/bitbucket/__init__.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/atlassian/bitbucket/__init__.py b/atlassian/bitbucket/__init__.py index 9e299fa61..6190a248c 100644 --- a/atlassian/bitbucket/__init__.py +++ b/atlassian/bitbucket/__init__.py @@ -1685,7 +1685,21 @@ def get_pullrequest(self, *args, **kwargs): """ Deprecated name since 1.15.1. Let's use the get_pull_request() """ - return self.get_pull_request(*args, **kwargs) + + def update_pullrequest(self, project_key, repository_slug, pull_request_id, data): + """ + Update a pull request. + The authenticated user must have REPO_WRITE permission + for the repository that this pull request targets to call this resource. + :param project_key: + :param repository_slug: + :param pull_request_id: the ID of the pull request within the repository + :param data: json body + :return: + """ + + url = self._url_pull_request(project_key, repository_slug, pull_request_id) + return self.post(url, data=data) def delete_pull_request( self, From 3e586e6cc044892dfbfc16aca6dde7eedbbb2d51 Mon Sep 17 00:00:00 2001 From: "Nuetzi, Gabriel" Date: Wed, 10 May 2023 17:05:51 +0200 Subject: [PATCH 2/3] fix: Correct naminig --- atlassian/bitbucket/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlassian/bitbucket/__init__.py b/atlassian/bitbucket/__init__.py index 6190a248c..5212b7cb5 100644 --- a/atlassian/bitbucket/__init__.py +++ b/atlassian/bitbucket/__init__.py @@ -1686,7 +1686,7 @@ def get_pullrequest(self, *args, **kwargs): Deprecated name since 1.15.1. Let's use the get_pull_request() """ - def update_pullrequest(self, project_key, repository_slug, pull_request_id, data): + def update_pull_request(self, project_key, repository_slug, pull_request_id, data): """ Update a pull request. The authenticated user must have REPO_WRITE permission From 45eeb63a07f39519aa03cf9f8891b5993f78db11 Mon Sep 17 00:00:00 2001 From: "Nuetzi, Gabriel" Date: Wed, 10 May 2023 17:07:59 +0200 Subject: [PATCH 3/3] fix: Update version --- atlassian/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlassian/VERSION b/atlassian/VERSION index ebb8439a9..c03c47aa8 100644 --- a/atlassian/VERSION +++ b/atlassian/VERSION @@ -1 +1 @@ -3.36.0 \ No newline at end of file +3.37.0