Create branch
Create a branch starting from another branch (the default branch when none is given).
Command in the GitHub toolkit · id ooa.github/create_branch · 6 inputs (4 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Endpoint address | String | No | https://api.github.com | API address. Keep the default for github.com; for GitHub Enterprise Server use https://github.yourcompany.com/api/v3. |
| Token | Credential | Yes | Personal access token or app token from the vault, with access to the repository. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Owner | String | Yes | User or organization that owns the repository, e.g. acme-corp. | |
| Repo | String | Yes | Repository name without the owner, e.g. billing-service. | |
| Branch | String | Yes | Name of the new branch. | |
| From branch | String | No | Branch to start from. Empty means the default branch. |
Outputs
| Output | Type | What it is |
|---|---|---|
| sha | String | Commit id the new branch points to. |