summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBian Jiaping <ssbianjp@gmail.com>2022-07-15 16:00:01 +0800
committerGitHub <noreply@github.com>2022-07-15 16:00:01 +0800
commite49ef56dde11e87ec5d43a001dfe59c57b21441c (patch)
treea607f0a9b8a0e2bf17dacb3ce7083d4fc629f58b /templates
parentedd945bca386929a0d0e5cfbc5fe1b225d64dd71 (diff)
downloadgitea-e49ef56dde11e87ec5d43a001dfe59c57b21441c.tar.gz
gitea-e49ef56dde11e87ec5d43a001dfe59c57b21441c.zip
Add allow_rebase_update, default_delete_branch_after_merge to repository api response (#20079)
`PATCH /repos/{owner}/{repo}` API allows users to update `allow_rebase_update`, `default_delete_branch_after_merge`, but `GET /repos/{owner}/{repo}` API does not return these two options, and API users has no other ways to find the state of these two options. This PR add `allow_rebase_update`, `default_delete_branch_after_merge` to repository query api response.
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 39c5026b77..4b24cb729d 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -17713,6 +17713,10 @@
"type": "boolean",
"x-go-name": "AllowRebaseMerge"
},
+ "allow_rebase_update": {
+ "type": "boolean",
+ "x-go-name": "AllowRebaseUpdate"
+ },
"allow_squash_merge": {
"type": "boolean",
"x-go-name": "AllowSquash"
@@ -17738,6 +17742,10 @@
"type": "string",
"x-go-name": "DefaultBranch"
},
+ "default_delete_branch_after_merge": {
+ "type": "boolean",
+ "x-go-name": "DefaultDeleteBranchAfterMerge"
+ },
"default_merge_style": {
"type": "string",
"x-go-name": "DefaultMergeStyle"