listProjectPullRequests
listProjectPullRequestsRetrieve pull request analyses for a SonarQube project, including branches, quality gate, and issue counts, to identify findings and use the returned key for further inspection.
Instructions
List project PR analyses. Returns key, title, source/base branches, URL, analysis date, quality gate, and issue counts; use the key as pullRequest in other tools. Returns empty when DevOps integration is unavailable.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "listProjectPullRequests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectKey | No | Project key; omit only if the server has a default. Discover with `listProjects`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectKey | No | Key of the project these pull requests belong to. | |
| pullRequests | No | List of pull requests with analysis status and issue counts. |