create_branch
Creates a new branch in a GitHub repository, specifying the owner, repository name, and desired branch, with an option to base it on an existing branch.
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 | Optional: source branch to create from (defaults to the repository's default branch) | |
owner | Yes | Repository owner (username or organization) | |
repo | Yes | Repository name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"branch": {
"description": "Name for the new branch",
"type": "string"
},
"from_branch": {
"description": "Optional: source branch to create from (defaults to the repository's default branch)",
"type": "string"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"branch"
],
"type": "object"
}