Git

List commits

Returns a paginated list of commits for a repository.

get/api/commits

Request

  • The document declares no server URL.
  • Auth
    • HTTP bearer
    • or API key in header X-Sourcebot-Api-Key
    • or none

Query parameters

repostring required

The fully-qualified repository name.

querystring

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).

untilstring

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.

refstring

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.

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

Changes

No recorded changes to this operation across all 2 revisions of this API.