create-branch
Create a new branch in a GitHub repository by specifying the owner, repository name, and branch name, with optional source branch selection.
Instructions
Create a new branch in a GitHub repository
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branch | Yes | Name for the new branch | |
from_branch | No | Source branch to create from (defaults to the repository's default branch) | |
owner | Yes | Repository owner | |
repo | Yes | Repository name |
Input Schema (JSON Schema)
{
"properties": {
"branch": {
"description": "Name for the new branch",
"type": "string"
},
"from_branch": {
"description": "Source branch to create from (defaults to the repository's default branch)",
"type": "string"
},
"owner": {
"description": "Repository owner",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"branch"
],
"type": "object"
}