Get pull request checks
gh_get_pr_checksGet a structured summary of CI checks for a pull request's head revision. Read-only, returns bounded results, can filter to required checks only.
Instructions
Read-only: return a bounded structured summary of CI checks for one exact pull-request head revision. This performs no watching, log download, workflow dispatch, approval, or GitHub write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Canonical GitHub repository name without path separators. | |
| owner | Yes | Canonical GitHub repository owner. | |
| number | Yes | Positive pull request number. | |
| max_checks | No | Maximum checks returned, capped by server result policy. | |
| required_only | No | Return only checks required by branch protection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | Yes | ||
| number | Yes | ||
| base_sha | Yes | ||
| head_sha | Yes | ||
| truncated | Yes | ||
| total_count | Yes |