Quality Gate Status
quality_gate_statusEvaluate pull request or branch CI evidence to determine merge readiness, returning blockers, warnings, and next actions.
Instructions
Evaluate real merge-gate evidence for a pull request or CI evidence for a git ref.
Args:
owner, repo: Repository coordinates.
pullNumber (number?): PR number (preferred); evaluates CI, reviews, policy, labels, and mergeability.
ref (string?): Branch name or commit SHA; evaluates CI only.
blockingLabels (string[]): Exact case-insensitive PR labels that block merging. Pass [] to disable.
Returns: A structured evidence packet, blockers, warnings, next actions, and a conservative conclusion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git ref (branch name, commit SHA). Ignored if pullNumber is set. | |
| repo | No | GitHub repo. Falls back to GITHUB_REPO. | |
| owner | No | GitHub owner. Falls back to GITHUB_OWNER. | |
| pullNumber | No | PR number. Takes precedence over ref when provided. | |
| blockingLabels | No | Exact, case-insensitive PR labels that block the gate. Pass [] to disable. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | Yes | ||
| headSha | Yes | ||
| blockers | Yes | ||
| degraded | Yes | ||
| evidence | Yes | ||
| warnings | Yes | ||
| categories | Yes | ||
| conclusion | Yes | ||
| nextActions | Yes | ||
| totalChecks | Yes | ||
| contextLabel | Yes | ||
| policyDigest | No | ||
| policySources | No | ||
| policyDegraded | No | ||
| unverifiedSignals | Yes | ||
| appliedPolicyRules | No |