diff options
author | 来自村里的小螃蟹 <yystopf@163.com> | 2023-05-09 18:22:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 18:22:32 +0800 |
commit | cd9a13ebb47d32f46b38439a524e3b2e0c619490 (patch) | |
tree | 837477fd835ac987d881689468fef298ded8bbbd /templates | |
parent | 023a048f52b5bf8c4b715285245a129f04e05a8c (diff) | |
download | gitea-cd9a13ebb47d32f46b38439a524e3b2e0c619490.tar.gz gitea-cd9a13ebb47d32f46b38439a524e3b2e0c619490.zip |
Create a branch directly from commit on the create branch API (#22956)
#### Added
- API: Create a branch directly from commit on the create branch API
- Added `old_ref_name` parameter to allow creating a new branch from a
specific commit, tag, or branch.
- Deprecated `old_branch_name` parameter in favor of the new
`old_ref_name` parameter.
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 99c49fec9c..e11fdeff80 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -16145,10 +16145,16 @@ "x-go-name": "BranchName" }, "old_branch_name": { - "description": "Name of the old branch to create from", + "description": "Deprecated: true\nName of the old branch to create from", "type": "string", "uniqueItems": true, "x-go-name": "OldBranchName" + }, + "old_ref_name": { + "description": "Name of the old branch/tag/commit to create from", + "type": "string", + "uniqueItems": true, + "x-go-name": "OldRefName" } }, "x-go-package": "code.gitea.io/gitea/modules/structs" |