GitHub Search Commits
1积分/次
ae_github_search_commits
按关键词、作者、仓库、文件路径或日期范围搜索 GitHub 仓库中的特定提交
1积分/次
价格说明
1积分/次
| 条件 | 费用 |
|---|---|
| 每次调用 | 1积分/次 |
工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
q | string | 是 | The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching commits](https://docs.github.com/search-github/searching-on-github/searching-commits)" for a detailed list of qualifiers. | — |
page | integer | 否 | The 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 |
sort | enum (author-date | committer-date) | 否 | Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) | — |
order | enum (desc | asc) | 否 | Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. | desc |
per_page | integer | 否 | The 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 |
调用示例
复制请求代码,查看对应的返回示例。
POST
/agent-api/v1/tool/executeX-Api-Key请求代码request.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_github_search_commits' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"order": "desc",
"page": 1,
"per_page": 30,
"q": "test"
}
}'返回示例response.json
{
"incomplete_results": true,
"items": [
{
"author": null,
"comments_url": "https://api.github.com/repos/NVKPAVANKUMAR/home-loan-calculator-vercel/commits/4800530ec46f3b8e1a8366d20273c6c91f7f6e0a/comments",
"commit": {
"author": {
"date": "2026-10-07T20:02:30.000+05:30",
"email": "npavankumar144@gmail.com",
"name": "NVK PAVANKUMAR"
},
"comment_count": 0,
"committer": {
"date": "2026-10-07T20:02:30.000+05:30",
"email": "npavankumar144@gmail.com",
"name": "NVK PAVANKUMAR"
},
"message": "feat: Add Playwright test planning and generation skills for Home Loan Calculator\n\n- Introduced `playwright-test-planner` agent for comprehensive test planning.\n- Created `create-scenarios` skill to generate functional test scenarios based on UI and mortga",
"tree": {
"sha": "02cf2f1941d89c6c69c86ba46950aee04e618388",
"url": "https://api.github.com/repos/NVKPAVANKUMAR/home-loan-calculator-vercel/git/trees/02cf2f1941d89c6c69c86ba46950aee04e618388"
},
"url": "https://api.github.com/repos/NVKPAVANKUMAR/home-loan-calculator-vercel/git/commits/4800530ec46f3b8e1a8366d20273c6c91f7f6e0a"
},
"committer": null,
"html_url": "https://github.com/NVKPAVANKUMAR/home-loan-calculator-vercel/commit/4800530ec46f3b8e1a8366d20273c6c91f7f6e0a",
"url": "https://api.github.com/repos/NVKPAVANKUMAR/home-loan-calculator-vercel/commits/4800530ec46f3b8e1a8366d20273c6c91f7f6e0a"
}
],
"total_count": 831042714
}返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。

