API ReferenceGit
List commits for a repository
List commits from the Git database for a specific repository and branch.
Path Parameters
repo*string
The repository id
Format
uuidQuery Parameters
branch?string|null
Branch name (defaults to HEAD)
limit?integer|null
Maximum number of commits to return (default: 50, max: 500)
Range
0 <= valueoffset?integer|null
Number of commits to skip (default: 0)
Range
0 <= valueResponse Body
application/json
curl -X GET "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/git/commits?branch=main&limit=50&offset=0"{
"commits": [
{
"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"
}
],
"count": 0,
"offset": 0,
"limit": 0,
"total": 0
}