Bitbucket Cloud
List open pull requests in Bitbucket Cloud
List open pull requests for a repository with the Bitbucket API, or browse them in the Atlassian extension for VS Code. Use the API’s state filter when a report also needs merged or declined pull requests.
Documentation reviewed · 2 methods with sources
Ways to do it
- API: GET /2.0/repositories/{workspace}/{repo_slug}/pullrequests
- Interface: Atlassian for VS Code pull request panel
API
GET /2.0/repositories/{workspace}/{repo_slug}/pullrequests
Retrieve pull requests for one repository. Follow the next page link when provided.
Read source: Bitbucket Cloud pull request API- Requirements
- A workspace, a repository slug, and permission to read its pull requests. OAuth 2.0 uses the pullrequest scope.
- Limitations
- The endpoint defaults to OPEN. Pass the desired state when you need another status.
Interface
Atlassian for VS Code pull request panel
Open the Atlassian sidebar in VS Code to view pull requests for your connected Bitbucket repositories.
Read source: Bitbucket pull requests in VS Code- Requirements
- The Atlassian for VS Code extension signed into an account that can read the repository.
- Limitations
- The sidebar shows open pull requests by default. Its filters can narrow the list to pull requests you created or those waiting for your review.