Search Branches

Search for branches in GitHub.

Options

Field Definition Type Required

Result Set

Choose a method to filter search results:

  • First Matching Record: Returns the first record that matches.

  • All Matching Records: Returns all matching records as a list.

Dropdown

TRUE

Organization

Choose the organization that owns the repository containing the 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 containing the 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

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

Name

Name of the branch to search for.

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

Text

FALSE

Commit SHA

The commit_sha+ parameter for the branch.

Text

FALSE

Output

Field Definition Type

Branches

Name

Name of the branch.

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

Text

Commit SHA

The commit_sha+ parameter for the branch.

Text

Related topics

GitHub connector

Workflow elements

GitHub API documentation