library
turbot/github
OverviewPipelines
0
Triggers
0
Variables
GitHub

Get branch

Get a branch in a specified repository.

Run the pipeline

To run this pipeline from your terminal:

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

Use this pipeline

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

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

Params

NameTypeRequiredDescriptionDefault
credstringYesdefault
repository_ownerstringYesThe organization or user name.-
repository_namestringYesThe name of the repository.-
branch_namestringYesThe name of the branch to check.-

Outputs

NameDescription
branch