Create Branch

Create a reference for a branch in GitHub.

Options

Field Definition Type Required
Organization Organization for the repository that contains the new branch. Dropdown TRUE
Repository Repository that contains the new branch. Dropdown TRUE

You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists.

Input

Field Definition Type Required
Branch
Branch Name Name of the new branch. Default is the repository's default branch (usually Main). String TRUE
Commit SHA commit_sha+ parameter for the commit of the new branch. String TRUE

Output

Field Definition Type
Branch
Branch Full Name Full name of the new branch. Default is the repository's default branch (usually Main). String
Branch Node ID node_id value of the new branch in the GitHub API. String
Commit SHA commit_sha+ parameter for the commit of the new branch. String

Related topics

GitHub connector

Workflow elements

GitHub API documentation