Canonical: https://weaveos.com/reference/github/read-pull-request-checks

1. [Software capabilities](https://weaveos.com/reference)
2. /[GitHub](https://weaveos.com/reference/github)
3. /Read checks on a GitHub pull request

GitHub capability

# Read checks on a GitHub pull request

Use gh pr checks for a pull request’s check summary. Use the Checks API for structured check runs on a specific commit.

Documentation reviewed November 26, 2026

## Ways to do it

API

### GET /repos/{owner}/{repo}/commits/{ref}/check-runs

Read check names, states, and conclusions from a commit or other Git ref.

- Requirements

  Repository and Git ref. Use the pull request head SHA for the checks on that commit. Private access with a fine-grained token requires Checks read permission.

- Limitations

  The default filter is latest. Use filter=all when you need earlier check runs as well.

Example

```
curl --fail -H "Authorization: Bearer $GITHUB_TOKEN" \
  "https://api.github.com/repos/$OWNER/$REPO/commits/$HEAD_SHA/check-runs"
```

[Read source: GitHub REST API check runs ↗](https://docs.github.com/en/rest/checks/runs#list-check-runs-for-a-git-reference)

CLI

### gh pr checks \<pull-request>

Show checks for one pull request. Add --required to focus on checks required for merging.

- Requirements

  GitHub CLI with repository access and a pull request number, URL, or branch.

- Limitations

  Pending checks can produce exit code 8. Scripts need to account for that separately from a failed check.

Example

```
gh pr checks "$PR_NUMBER" --repo "$OWNER/$REPO" --required
```

[Read source: GitHub CLI pull request checks ↗](https://cli.github.com/manual/gh_pr_checks)

## More from GitHub

[View all GitHub capabilities →](https://weaveos.com/reference/github)

- [Read GitHub Actions job logs↗](https://weaveos.com/reference/github/read-actions-job-logs)
- [List GitHub Actions workflow runs↗](https://weaveos.com/reference/github/list-actions-workflow-runs)
- [Read a GitHub pull request diff↗](https://weaveos.com/reference/github/read-pull-request-diff)
- [Download GitHub Actions artifacts↗](https://weaveos.com/reference/github/download-actions-artifacts)
