Skip to content

Commit 402a79a

Browse files
authored
feat: Add update pull-request call (#1164)
* feat: Add update pull-request call * fix: Correct naminig * fix: Update version
1 parent 13ae342 commit 402a79a

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

atlassian/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.36.0
1+
3.37.0

atlassian/bitbucket/__init__.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,21 @@ def get_pullrequest(self, *args, **kwargs):
16851685
"""
16861686
Deprecated name since 1.15.1. Let's use the get_pull_request()
16871687
"""
1688-
return self.get_pull_request(*args, **kwargs)
1688+
1689+
def update_pull_request(self, project_key, repository_slug, pull_request_id, data):
1690+
"""
1691+
Update a pull request.
1692+
The authenticated user must have REPO_WRITE permission
1693+
for the repository that this pull request targets to call this resource.
1694+
:param project_key:
1695+
:param repository_slug:
1696+
:param pull_request_id: the ID of the pull request within the repository
1697+
:param data: json body
1698+
:return:
1699+
"""
1700+
1701+
url = self._url_pull_request(project_key, repository_slug, pull_request_id)
1702+
return self.post(url, data=data)
16891703

16901704
def delete_pull_request(
16911705
self,

0 commit comments

Comments
 (0)