diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-07-01 10:52:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 10:52:52 +0800 |
commit | de981c39e642c9df77881aa3dc8161b1a2ae64c6 (patch) | |
tree | ae1dd9da1d6c04ea07a24b7f630c5294de3153df /templates/swagger/v1_json.tmpl | |
parent | 1704c64a1527b2cd3b7fa125f7405f68876e2ca4 (diff) | |
download | gitea-de981c39e642c9df77881aa3dc8161b1a2ae64c6.tar.gz gitea-de981c39e642c9df77881aa3dc8161b1a2ae64c6.zip |
Fix bug of branches API with tests (#25578)
Fix #25558
Extract from #22743
This PR added a repository's check when creating/deleting branches via
API. Mirror repository and archive repository cannot do that.
Diffstat (limited to 'templates/swagger/v1_json.tmpl')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index f98dc12d95..4c6ee55f84 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -3606,6 +3606,9 @@ "201": { "$ref": "#/responses/Branch" }, + "403": { + "description": "The branch is archived or a mirror." + }, "404": { "description": "The old branch does not exist." }, |