123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- {
- "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"]
- }
- ]
- }
- }
|