mirror of
https://github.com/go-gitea/gitea
synced 2025-09-18 22:58:14 +00:00
Rename UpdateBranch API to RenameBranch API (#35374)
Discussed in #35368, originally implemented in #32433
This commit is contained in:
38
templates/swagger/v1_json.tmpl
generated
38
templates/swagger/v1_json.tmpl
generated
@@ -6807,8 +6807,8 @@
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Update a branch",
|
||||
"operationId": "repoUpdateBranch",
|
||||
"summary": "Rename a branch",
|
||||
"operationId": "repoRenameBranch",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -6835,7 +6835,7 @@
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/UpdateBranchRepoOption"
|
||||
"$ref": "#/definitions/RenameBranchRepoOption"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -27163,6 +27163,22 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"RenameBranchRepoOption": {
|
||||
"description": "RenameBranchRepoOption options when renaming a branch in a repository",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "New branch name",
|
||||
"type": "string",
|
||||
"uniqueItems": true,
|
||||
"x-go-name": "Name"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"RenameOrgOption": {
|
||||
"description": "RenameOrgOption options when renaming an organization",
|
||||
"type": "object",
|
||||
@@ -28093,22 +28109,6 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"UpdateBranchRepoOption": {
|
||||
"description": "UpdateBranchRepoOption options when updating a branch in a repository",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "New branch name",
|
||||
"type": "string",
|
||||
"uniqueItems": true,
|
||||
"x-go-name": "Name"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"UpdateFileOptions": {
|
||||
"description": "UpdateFileOptions options for updating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
|
||||
"type": "object",
|
||||
|
Reference in New Issue
Block a user