LogoFreestyle
API Reference/Git

Get a commit object

Get a commit from the Git database with detailed information.

GET/git/v1/repo/{repo_id}/git/commits/{hash}

Path Parameters

repo_idRequiredstring

The repository ID

hashRequiredstring

The commit hash

curl -X GET "https://api.freestyle.sh/git/v1/repo/<string>/git/commits/<string>"

Commit retrieved successfully

{
  "author": {
    "date": "2019-08-24T14:15:22Z",
    "name": "string",
    "email": "string"
  },
  "committer": {
    "date": "2019-08-24T14:15:22Z",
    "name": "string",
    "email": "string"
  },
  "message": "string",
  "tree": {
    "sha": "string"
  },
  "parents": [
    {
      "sha": "string"
    }
  ],
  "sha": "string"
}