get_project_quality_gate_status
Check if a project, branch, or pull request passes its assigned quality gate and get details of any failing conditions.
Instructions
Check whether a project/branch/PR passed its assigned quality gate and inspect failing conditions.
Returns the quality gate status (OK, ERROR, WARN, NONE) and details of any failing conditions. At least one of analysisId, projectId, or projectKey must be provided.
Quality gate status values:
OK: All conditions passed
ERROR: One or more conditions failed
WARN: Warning threshold exceeded (deprecated)
NONE: No quality gate set
Example: get_project_quality_gate_status(projectKey="my-project", pullRequest="123")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch name to check (e.g., 'main', 'develop') | |
| projectId | No | Numeric project ID (less common, prefer projectKey) | |
| analysisId | No | Analysis ID to check quality gate for. Get this from analysis results or API | |
| projectKey | No | Project key (e.g., 'my-project'). Most commonly used identifier | |
| pullRequest | No | Pull request ID to check (e.g., '123') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| conditions | Yes |