library
turbot/github
OverviewPipelines
0
Triggers
0
Variables
GitHub

Create Branch

Creates a new branch in a specified repository.

Run the pipeline

To run this pipeline from your terminal:

flowpipe pipeline run github.pipeline.create_branch \
--arg 'branch_name=<string>' \
--arg 'repository_owner=<string>' \
--arg 'repository_name=<string>'

Use this pipeline

To call this pipeline from your pipeline, use a step:

step "pipeline" "step_name" {
pipeline = github.pipeline.create_branch
args = {
branch_name = <string>
repository_owner = <string>
repository_name = <string>
}
}

Params

NameTypeRequiredDescriptionDefault
branch_namestringYesThe name of the new branch.-
source_branchstringYesThe name of the source branch to branch off. Defaults to the default branch of the repository.main
credstringYesName for credentials to use. If not provided, the default credentials will be used.default
repository_ownerstringYesThe organization or user name.-
repository_namestringYesThe name of the repository.-

Outputs

NameDescription
branch