List pull requests
list_pull_requestsGet pull requests from a Bitbucket Cloud repository, with optional filters for state, author, source/destination branches, and a pagination limit.
Instructions
List pull requests in a Bitbucket Cloud repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum PRs to return. Pages are followed until this many are collected. | |
| state | No | Filter by PR state | OPEN |
| author | No | Filter by author account nickname, exact match, e.g. "Enes Polovina". Bitbucket can only filter on the nickname, which is usually the display name but is absent on many bot and service accounts. Use author_account_id for those. | |
| repo_slug | No | Repository slug, e.g. "billing-api". Defaults to BITBUCKET_REPO_SLUG. | |
| workspace | No | Bitbucket workspace ID, e.g. "acme". Defaults to BITBUCKET_WORKSPACE. | |
| source_branch | No | Filter by source branch, substring match, e.g. "PROJ" matches "fix/PROJ-142" | |
| author_account_id | No | Filter by author account_id. Exact, and works for accounts with no nickname. | |
| destination_branch | No | Filter by target branch, exact match, e.g. "main" or "release/2.4" |