List Commits
List commit history for the repository default branch or for an explicit branch. Results are cursor-paginated and ordered by commit date, newest first. Set path to restrict the history to commits that modified a specific file or subtree.
Deprecated: Use /api/repos/{repo_name}/commits instead.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Optional branch name to list commits from. When omitted, the repository default branch is used.
Optional repository-relative path to scope the history to commits that touched that path.
Pagination cursor returned by a previous list_commits response.
Maximum number of commits to return. Defaults to 20.
Whether branch should be resolved from the ephemeral namespace.
Response
Commit history ordered from newest to oldest.