Create Branch

Create a reference for a branch in GitHub.

Options

Field Definition Type Required

Organization

Choose the organization that owns the repository for the new branch.

The dropdown list displays the organizations for the authenticated user. The list is limited to 100 organizations.

If the repository is under a personal account, select the -- Not In Org -- option.

Dropdown

TRUE

Repository

Choose the repository for the new branch.

The dropdown list displays the repositories for the selected Organization.

If you select the -- Input Repo Full Name -- option, then the card ignores the Organization selection and you must enter the full name of the repository in the Repository input field.

Dropdown

TRUE

You can't create references for empty repositories, even if the SHA-1 hash exists for the commit.

Input

Field Definition Type Required

Repository

Full Name

The full name of the repository.

This input field appears when you select -- Input Repo Full Name -- as the Repository option.

The name must be formatted as <org_name>/<repo_name> if the repository is within an organization, or <owner_name>/<repo_name> if the repository is under a personal account.

The card returns an error if the repository doesn't exist or the user doesn't have permission to access the repository.

Text

TRUE

Branch

Branch Name

Name of the new branch.

The default name is the repository's default branch (usually Main).

Text

TRUE

Commit SHA

The commit_sha+ parameter for the commit of the new branch.

Text

TRUE

Output

Field Definition Type

Branch

Branch Full Name

Full name of the new branch.

The default name is the repository's default branch (usually Main).

Text

Branch Node ID

The node_id value of the new branch in the GitHub API.

Text

Commit SHA

The commit_sha+ parameter for the commit of the new branch.

Text

Related topics

GitHub connector

Workflow elements

GitHub API documentation