diff options
author | sebastian-sauer <sauer.sebastian@gmail.com> | 2021-07-02 14:19:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 14:19:57 +0200 |
commit | 92328a3394be51e6200f69c91c402aa15ff6e06e (patch) | |
tree | c75096a6e31386435ee250c021cd3c6d7131002c /templates/swagger | |
parent | a3476e5ad5ee87d4e985b9a3e914bf5348216745 (diff) | |
download | gitea-92328a3394be51e6200f69c91c402aa15ff6e06e.tar.gz gitea-92328a3394be51e6200f69c91c402aa15ff6e06e.zip |
Add API to get commits of PR (#16300)
* Add API to get commits of PR
fixes #10918
Co-authored-by: Andrew Bezold <andrew.bezold@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index dfd08bcc68..a2e449228e 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -7333,6 +7333,62 @@ } } }, + "/repos/{owner}/{repo}/pulls/{index}/commits": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "repository" + ], + "summary": "Get commits for a pull request", + "operationId": "repoGetPullRequestCommits", + "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": "integer", + "format": "int64", + "description": "index of the pull request to get", + "name": "index", + "in": "path", + "required": true + }, + { + "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/CommitList" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + } + }, "/repos/{owner}/{repo}/pulls/{index}/merge": { "get": { "produces": [ |