unapprove_pr
Remove your approval from a Bitbucket pull request to indicate changes are needed or to reconsider your review decision.
Instructions
Remove your approval from a pull request.
Args:
repo_slug: Repository slug
pr_id: Pull request ID
Returns:
Confirmation of approval removal
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| pr_id | Yes |
Implementation Reference
- src/server.py:1002-1018 (handler)MCP tool handler function that removes approval from a pull request by calling BitbucketClient.unapprove_pr@mcp.tool() @handle_bitbucket_error @formatted def unapprove_pr(repo_slug: str, pr_id: int) -> dict: """Remove your approval from a pull request. Args: repo_slug: Repository slug pr_id: Pull request ID Returns: Confirmation of approval removal """ client = get_client() client.unapprove_pr(repo_slug, pr_id) return {"pr_id": pr_id}
- src/bitbucket_client.py:1024-1040 (helper)BitbucketClient helper method that sends DELETE request to unapprove the PR via Bitbucket APIdef unapprove_pr( self, repo_slug: str, pr_id: int ) -> bool: """Remove approval from a pull request. Args: repo_slug: Repository slug pr_id: Pull request ID Returns: True if successful """ self._request( "DELETE", self._repo_path(repo_slug, "pullrequests", str(pr_id), "approve"), ) return True