getProject
getProjectRetrieve a project's SonarQube analysis: quality gate failures, size, findings, coverage, duplication, technical debt. Specify branch or pull request for non-default refs.
Instructions
Get one project analysis. Returns project metadata, quality gate failures, and metrics for size, findings, coverage, duplication, and technical debt. Scope explicitly: omitting both branch and pullRequest uses the configured default (usually main). For non-main or PR work, pass the matching ref explicitly; discover it with listProjectBranches / listProjectPullRequests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch name; mutually exclusive with `pullRequest`. Omission uses the configured default (usually main). For non-main work, pass explicitly; use `listProjectBranches`. | |
| projectKey | No | Project key; omit only if the server has a default. Discover with `listProjects`. | |
| pullRequest | No | PR key; mutually exclusive with `branch`; no default. For PR work, pass explicitly; use `listProjectPullRequests`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Human-readable project name. | |
| metrics | No | ||
| version | No | Project version string, if configured. | |
| qualifier | No | Project qualifier: TRK for a main project, VW for a portfolio, APP for an application. | |
| projectKey | No | Unique project key. | |
| visibility | No | Visibility setting: 'public' or 'private'. | |
| description | No | Optional project description. | |
| qualityGate | No | ||
| lastAnalysisDate | No | ISO-8601 timestamp of the most recent successful analysis. |