v1

latestOpenAPI 3.0.32026-07-22172336.7 KB
Git

List commits

Returns a paginated list of commits for a repository.

get/api/commits

Query parameters

repostring required

The fully-qualified repository name.

The fully-qualified repository name.

querystring

Filter commits by message content (case-insensitive). Interpreted as a POSIX BRE regex — escape metacharacters for literal matching.

Filter commits by message content (case-insensitive). Interpreted as a POSIX BRE regex — escape metacharacters for literal matching.

sincestring

Return commits after this date. Accepts ISO 8601 or relative formats (e.g. 30 days ago).

Return commits after this date. Accepts ISO 8601 or relative formats (e.g. 30 days ago).

untilstring

Return commits before this date. Accepts ISO 8601 or relative formats.

Return commits before this date. Accepts ISO 8601 or relative formats.

authorstring

Filter commits by author name or email (case-insensitive). Interpreted as a POSIX BRE regex — escape metacharacters for literal matching.

Filter commits by author name or email (case-insensitive). Interpreted as a POSIX BRE regex — escape metacharacters for literal matching.

refstring

The git ref (branch, tag, or commit SHA) to list commits from. Defaults to HEAD.

The git ref (branch, tag, or commit SHA) to list commits from. Defaults to HEAD.

pathstring

Restrict commits to those that touch this file path.

Restrict commits to those that touch this file path.

pageinteger
perPageinteger

Response

Paginated commit list.

hashstring required

The full commit SHA.

datestring required

The commit date in ISO 8601 format.

messagestring required

The commit subject line.

refsstring required

Refs pointing to this commit (e.g. branch or tag names).

bodystring required

The commit body (everything after the subject line).

authorNamestring required
authorEmailstring required