GitHub Repos Get Commit

1 credits/call
ae_github_repos_get_commit

View details of a specific commit—including author, message, changes (diff/patch), and GPG signature verification—in a GitHub repository.

Productivity
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
refstringYesThe commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.—
pageintegerNoThe page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."1
repostringYesThe name of the repository without the `.git` extension. The name is not case sensitive.—
ownerstringYesThe account owner of the repository. The name is not case sensitive.—
per_pageintegerNoThe number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."30

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_github_repos_get_commit' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "owner": "P0luz",
    "per_page": 100,
    "ref": "115d831d979bf67efc7150f976e2cb34c333c935",
    "repo": "Ombre-Brain"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "author": {
    "avatar_url": "https://avatars.githubusercontent.com/u/309130720?v=4",
    "events_url": "https://api.github.com/users/WS-www/events{/privacy}",
    "followers_url": "https://api.github.com/users/WS-www/followers",
    "following_url": "https://api.github.com/users/WS-www/following{/other_user}",
    "gists_url": "https://api.github.com/users/WS-www/gists{/gist_id}",
    "id": 309130720
  },
  "comments_url": "https://api.github.com/repos/P0luz/Ombre-Brain/commits/115d831d979bf67efc7150f976e2cb34c333c935/comments",
  "commit": {
    "author": {
      "date": "2026-09-11T03:50:58Z",
      "email": "790749085@qq.com",
      "name": "WS-www"
    },
    "comment_count": 0,
    "committer": {
      "date": "2026-09-11T03:50:58Z",
      "email": "790749085@qq.com",
      "name": "WS-www"
    },
    "message": "fix: 3.6.14 — 修复写入被拒不说是哪个字段、You 读回看不见在攒的候选\n\n写入一次查三个字段却只报一句笼统的,正文合规、踩线的是 concept_key 时\n模型只会反复重写正文。现在点名到字段。\n\nYou 的候选从不列出,而重申需要的 concept_key/concept_value/bucket_ids\n只存在于写它的那次对话里,换窗后无从接力——them 早有的欠账清单补给 You。\n\n另加进程内存读数,供 Render OOM 那条带回真实测量。\n\nCo-Authored-By: C",
    "tree": {
      "sha": "2c91e69ead5329b94fae37433c8f673ba30bc090",
      "url": "https://api.github.com/repos/P0luz/Ombre-Brain/git/trees/2c91e69ead5329b94fae37433c8f673ba30bc090"
    },
    "url": "https://api.github.com/repos/P0luz/Ombre-Brain/git/commits/115d831d979bf67efc7150f976e2cb34c333c935"
  },
  "committer": {
    "avatar_url": "https://avatars.githubusercontent.com/u/309130720?v=4",
    "events_url": "https://api.github.com/users/WS-www/events{/privacy}",
    "followers_url": "https://api.github.com/users/WS-www/followers",
    "following_url": "https://api.github.com/users/WS-www/following{/other_user}",
    "gists_url": "https://api.github.com/users/WS-www/gists{/gist_id}",
    "id": 309130720
  },
  "files": [
    {
      "additions": 42,
      "blob_url": "https://github.com/P0luz/Ombre-Brain/blob/115d831d979bf67efc7150f976e2cb34c333c935/CHANGELOG.md",
      "changes": 42,
      "contents_url": "https://api.github.com/repos/P0luz/Ombre-Brain/contents/CHANGELOG.md?ref=115d831d979bf67efc7150f976e2cb34c333c935",
      "deletions": 0,
      "status": "modified"
    }
  ],
  "url": "htt"
}

This example shows part of the response. Copied content is valid JSON.