Search commits across public GitHub repositories
github_search_commitsSearch commits across public GitHub repositories. Read-only: returns public data and changes nothing. Costs 1 credit per request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | Commits with this SHA (or prefix). Maps to `hash:`. | |
| sort | Yes | Sort field. Defaults to relevance ("best-match"). | best-match |
| count | Yes | Number of results to return (1–10). Defaults to 10. | |
| merge | No | Only merge commits (true) or exclude them (false). Maps to `merge:`. | |
| order | Yes | Sort direction. Defaults to "desc". | desc |
| query | No | Free-text search terms, matched against the default fields for this search type, e.g. "web framework". | |
| repos | No | Limit to these "owner/name" repositories. Maps to `repo:`. | |
| start | No | Number of results to skip (0–999). Defaults to 0. Only the first 1,000 results of a search can be paged through. | |
| author | No | Commits authored by this GitHub user. Maps to `author:`. | |
| owners | No | Limit to these owners (users or orgs). Maps to `user:`. | |
| committer | No | Commits committed by this GitHub user. Maps to `committer:`. | |
| authoredDate | No | Filter by author date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range. | |
| committedDate | No | Filter by commit date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range. |