Git

Get commit details

Returns details for a single commit, including parent commit SHAs.

get/api/commit

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.

refstring required

The git ref (commit SHA, branch, or tag).

Response

Commit details.

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
parentsstring[] required

The parent commit SHAs.

Changes

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