create_branch
Create a new branch in a Gitee repository by specifying the owner, repository, and branch name, with an optional reference source for the branch.
Instructions
在 Gitee 仓库中创建一个新分支
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branch_name | Yes | Name for the new branch | |
owner | Yes | Repository owner path (enterprise, organization, or personal path) | |
refs | No | Source reference for the branch, default: master | master |
repo | Yes | Repository 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"
}