Skip to content

feat: Add update pull-request call #1164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion atlassian/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.36.0
3.37.0
16 changes: 15 additions & 1 deletion atlassian/bitbucket/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_pull_request(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,
Expand Down