Get exact Git commit
gh_get_commitRetrieve immutable commit details for a specific SHA from a GitHub repo, including tree, parents, author, committer, message, and verification metadata without altering the verification status.
Instructions
Read-only: return immutable identity and commit-object evidence for one exact 40-character commit SHA. The result includes the tree SHA, every parent SHA, author, committer, message, and GitHub's verification/signature metadata without reinterpreting or upgrading that verification state.
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": {
"owner": "<owner>",
"repo": "<repo>",
"commit_sha": "<commit_sha>"
},
"name": "gh_get_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | GitHub repository name without the owner prefix. | |
| owner | Yes | GitHub repository owner or organization login. | |
| commit_sha | Yes | Exact 40-character hexadecimal Git commit SHA. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | Yes | ||
| author | No | ||
| message | No | ||
| parents | No | ||
| tree_sha | No | ||
| committer | No | ||
| commit_sha | Yes | ||
| verification | No |