mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
64 lines
1.4 KiB
JSON
64 lines
1.4 KiB
JSON
{
|
|
"get": {
|
|
"tags": ["Organizations"],
|
|
"description": "Return a list of commits for a given repository.",
|
|
"operationId": "List a Repository's Commits",
|
|
"parameters": [
|
|
{
|
|
"name": "organization_slug",
|
|
"in": "path",
|
|
"description": "The organization short name.",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "repo_id",
|
|
"in": "path",
|
|
"description": "The repository ID.",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "../../components/schemas/releases/commit.json#/MinimalCommit"
|
|
}
|
|
},
|
|
"example": [
|
|
{
|
|
"dateCreated": "2018-11-06T21:19:58.536Z",
|
|
"id": "acbafc639127fd89d10f474520104517ff1d709e",
|
|
"message": "Initial commit from Create Next App"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "Forbidden"
|
|
},
|
|
"401": {
|
|
"description": "Unauthorized"
|
|
},
|
|
"404": {
|
|
"description": "Not Found"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"auth_token": ["org: read"]
|
|
}
|
|
]
|
|
}
|
|
}
|