Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add
get_check_runsmethod to thepull_request_readtool to fetch CI/CD check run status for a pull request's head commit.Why
Fixes #1942
AI tools cannot easily determine which CI/CD checks are failing on a pull request. The existing
get_statusmethod returns combined commit status but not individual check runs (GitHub Actions jobs, third-party checks).What changed
get_check_runsas option 8 inpull_request_readmethod enumGetPullRequestCheckRunsfunction using GitHub Checks APIMinimalCheckRunandMinimalCheckRunsResulttypes to reduce response sizeMCP impact
get_check_runsmethod value to the existingpull_request_readtool's method enum.Prompts tested (tool changes only)
Security / limits
scopes.Reposcope, same as other PR read methods.Tool renaming
deprecated_tool_aliases.goLint & tests
./script/lint./script/testgo test -run Test_GetPullRequestCheckRuns ./pkg/github/...- all tests pass.Docs