summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Walowski <mattwalowski@gmail.com>2023-05-09 18:34:07 -0700
committerGitHub <noreply@github.com>2023-05-10 09:34:07 +0800
commit5930ab5fdf7a970fcca3cd50b44cf1cacb615a54 (patch)
treeff7c5906653807d00db102e4849a781de2827864 /templates
parent9a0652f0b2e1d56e1187a9442e7f053dad453703 (diff)
downloadgitea-5930ab5fdf7a970fcca3cd50b44cf1cacb615a54.tar.gz
gitea-5930ab5fdf7a970fcca3cd50b44cf1cacb615a54.zip
Filter get single commit (#24613)
Pretty much the same thing as #24568 but for getting a single commit instead of getting a list of commits
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index e11fdeff80..35cbc71c8b 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -4498,6 +4498,24 @@
"name": "sha",
"in": "path",
"required": true
+ },
+ {
+ "type": "boolean",
+ "description": "include diff stats for every commit (disable for speedup, default 'true')",
+ "name": "stat",
+ "in": "query"
+ },
+ {
+ "type": "boolean",
+ "description": "include verification for every commit (disable for speedup, default 'true')",
+ "name": "verification",
+ "in": "query"
+ },
+ {
+ "type": "boolean",
+ "description": "include a list of affected files for every commit (disable for speedup, default 'true')",
+ "name": "files",
+ "in": "query"
}
],
"responses": {