forked from forgejo/forgejo
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.
This commit is contained in:
parent
1704c64a15
commit
de981c39e6
26 changed files with 258 additions and 4 deletions
3
templates/swagger/v1_json.tmpl
generated
3
templates/swagger/v1_json.tmpl
generated
|
@ -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."
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue