list_commits
Retrieve and filter GitLab repository commit history by date, author, branch, or file path to track code changes and review project activity.
Instructions
List repository commits with filtering options
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project ID or complete URL-encoded path to project | |
| ref_name | No | The name of a repository branch, tag or revision range, or if not given the default branch | |
| 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 | |
| path | No | The file path | |
| author | No | Search commits by commit author | |
| all | No | Retrieve every commit from the repository | |
| 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 | |
| order | No | List commits in order | |
| trailers | No | Parse and include Git trailers for every commit | |
| page | No | Page number for pagination (default: 1) | |
| per_page | No | Number of items per page (max: 100, default: 20) |