Gitee

by normal-coder
Verified

create_branch

在 Gitee 仓库中创建一个新分支

Input Schema

NameRequiredDescriptionDefault
branch_nameYesName for the new branch
ownerYesRepository owner path (enterprise, organization, or personal path)
refsNoSource reference for the branch, default: mastermaster
repoYesRepository path

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "branch_name": { "description": "Name for the new branch", "type": "string" }, "owner": { "description": "Repository owner path (enterprise, organization, or personal path)", "type": "string" }, "refs": { "default": "master", "description": "Source reference for the branch, default: master", "type": "string" }, "repo": { "description": "Repository path", "type": "string" } }, "required": [ "owner", "repo", "branch_name" ], "type": "object" }