Get Pull Request Checks Tool
get_pull_request_checks_toolGet a CI verdict for a pull request that classifies checks as passed, failing, pending, or skipped, so you know whether the PR is clear to merge.
Instructions
Get a CI verdict for a PR that distinguishes skipped from failed.
Classifies every check-run and commit-status context into passed,
failing, pending, or skipped. SKIPPED checks are NOT failures. Use the
returned ready_to_merge boolean as the signal for whether the PR is
clear to merge (True only when nothing is failing or pending and the PR
is not known-unmergeable). A token that cannot read check-runs (any
fine-grained token) gets the Actions jobs instead; checks_source says
which, and only Actions-reported checks are then visible.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>",
"pull_number": "<pull_number>"
},
"name": "get_pull_request_checks_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| owner | No | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
| pull_number | Yes | Pull request number | |
| allow_no_required_checks | No | Treat a PR with no checks as ready; by default zero checks found gives ready_to_merge False with a reason |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||