|
|
|
@ -2829,7 +2829,7 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/repos/{owner}/{repo}/commits/{ref}/statuses": { |
|
|
|
|
"/repos/{owner}/{repo}/commits/{ref}/status": { |
|
|
|
|
"get": { |
|
|
|
|
"produces": [ |
|
|
|
|
"application/json" |
|
|
|
@ -2870,7 +2870,88 @@ |
|
|
|
|
], |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"$ref": "#/responses/Status" |
|
|
|
|
"$ref": "#/responses/CombinedStatus" |
|
|
|
|
}, |
|
|
|
|
"400": { |
|
|
|
|
"$ref": "#/responses/error" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/repos/{owner}/{repo}/commits/{ref}/statuses": { |
|
|
|
|
"get": { |
|
|
|
|
"produces": [ |
|
|
|
|
"application/json" |
|
|
|
|
], |
|
|
|
|
"tags": [ |
|
|
|
|
"repository" |
|
|
|
|
], |
|
|
|
|
"summary": "Get a commit's statuses, by branch/tag/commit reference", |
|
|
|
|
"operationId": "repoListStatusesByRef", |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"type": "string", |
|
|
|
|
"description": "owner of the repo", |
|
|
|
|
"name": "owner", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"type": "string", |
|
|
|
|
"description": "name of the repo", |
|
|
|
|
"name": "repo", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"type": "string", |
|
|
|
|
"description": "name of branch/tag/commit", |
|
|
|
|
"name": "ref", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"enum": [ |
|
|
|
|
"oldest", |
|
|
|
|
"recentupdate", |
|
|
|
|
"leastupdate", |
|
|
|
|
"leastindex", |
|
|
|
|
"highestindex" |
|
|
|
|
], |
|
|
|
|
"type": "string", |
|
|
|
|
"description": "type of sort", |
|
|
|
|
"name": "sort", |
|
|
|
|
"in": "query" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"enum": [ |
|
|
|
|
"pending", |
|
|
|
|
"success", |
|
|
|
|
"error", |
|
|
|
|
"failure", |
|
|
|
|
"warning" |
|
|
|
|
], |
|
|
|
|
"type": "string", |
|
|
|
|
"description": "type of state", |
|
|
|
|
"name": "state", |
|
|
|
|
"in": "query" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"type": "integer", |
|
|
|
|
"description": "page number of results to return (1-based)", |
|
|
|
|
"name": "page", |
|
|
|
|
"in": "query" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"type": "integer", |
|
|
|
|
"description": "page size of results", |
|
|
|
|
"name": "limit", |
|
|
|
|
"in": "query" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"$ref": "#/responses/StatusList" |
|
|
|
|
}, |
|
|
|
|
"400": { |
|
|
|
|
"$ref": "#/responses/error" |
|
|
|
@ -11240,6 +11321,43 @@ |
|
|
|
|
}, |
|
|
|
|
"x-go-package": "code.gitea.io/gitea/modules/structs" |
|
|
|
|
}, |
|
|
|
|
"CombinedStatus": { |
|
|
|
|
"description": "CombinedStatus holds the combined state of several statuses for a single commit", |
|
|
|
|
"type": "object", |
|
|
|
|
"properties": { |
|
|
|
|
"commit_url": { |
|
|
|
|
"type": "string", |
|
|
|
|
"x-go-name": "CommitURL" |
|
|
|
|
}, |
|
|
|
|
"repository": { |
|
|
|
|
"$ref": "#/definitions/Repository" |
|
|
|
|
}, |
|
|
|
|
"sha": { |
|
|
|
|
"type": "string", |
|
|
|
|
"x-go-name": "SHA" |
|
|
|
|
}, |
|
|
|
|
"state": { |
|
|
|
|
"$ref": "#/definitions/StatusState" |
|
|
|
|
}, |
|
|
|
|
"statuses": { |
|
|
|
|
"type": "array", |
|
|
|
|
"items": { |
|
|
|
|
"$ref": "#/definitions/Status" |
|
|
|
|
}, |
|
|
|
|
"x-go-name": "Statuses" |
|
|
|
|
}, |
|
|
|
|
"total_count": { |
|
|
|
|
"type": "integer", |
|
|
|
|
"format": "int64", |
|
|
|
|
"x-go-name": "TotalCount" |
|
|
|
|
}, |
|
|
|
|
"url": { |
|
|
|
|
"type": "string", |
|
|
|
|
"x-go-name": "URL" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"x-go-package": "code.gitea.io/gitea/modules/structs" |
|
|
|
|
}, |
|
|
|
|
"Comment": { |
|
|
|
|
"description": "Comment represents a comment on a commit or issue", |
|
|
|
|
"type": "object", |
|
|
|
@ -15532,6 +15650,12 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"CombinedStatus": { |
|
|
|
|
"description": "CombinedStatus", |
|
|
|
|
"schema": { |
|
|
|
|
"$ref": "#/definitions/CombinedStatus" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"Comment": { |
|
|
|
|
"description": "Comment", |
|
|
|
|
"schema": { |
|
|
|
|