list_commits
Retrieve project commits filtered by author, date range, file path, or branch. Supports pagination and stats for efficient commit history analysis.
Instructions
List repository commits with filtering options
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Retrieve every commit from the repository | |
| page | No | Page number for pagination (default: 1) | |
| path | No | The file path | |
| order | No | List commits in order | |
| since | No | Only commits after or on this date are returned in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ | |
| until | No | Only commits before or on this date are returned in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ | |
| author | No | Search commits by commit author | |
| per_page | No | Number of items per page (max: 100, default: 20) | |
| ref_name | No | The name of a repository branch, tag or revision range, or if not given the default branch | |
| trailers | No | Parse and include Git trailers for every commit | |
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| with_stats | No | Stats about each commit are added to the response | |
| first_parent | No | Follow only the first parent commit upon seeing a merge commit |