getPullRequests
Retrieve pull requests from Bitbucket repositories based on workspace, repository slug, and state. Specify filters to fetch open, merged, declined, or superseded pull requests efficiently.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | No | Maximum number of pull requests to return | |
repo_slug | Yes | Repository slug | |
state | No | Pull request state | |
workspace | Yes | Bitbucket workspace name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"limit": {
"description": "Maximum number of pull requests to return",
"type": "number"
},
"repo_slug": {
"description": "Repository slug",
"type": "string"
},
"state": {
"description": "Pull request state",
"enum": [
"OPEN",
"MERGED",
"DECLINED",
"SUPERSEDED"
],
"type": "string"
},
"workspace": {
"description": "Bitbucket workspace name",
"type": "string"
}
},
"required": [
"workspace",
"repo_slug"
],
"type": "object"
}