GitLab · Arazzo Workflow
GitLab Create a Feature Branch from the Default Branch
Version 1.0.0
Resolve the default branch tip and cut a new feature branch from it.
Provider
Workflows
create-branch-from-default
Create a new branch in a project from the default branch ref.
Lists the project's repository branches to find the default branch, then creates a new branch that references the default branch so the new branch inherits the latest commit.
1
listBranches
getApiV4ProjectsIdRepositoryBranches
List the repository branches so the default branch and its current commit can be identified before branching.
2
createBranch
postApiV4ProjectsIdRepositoryBranches
Create the new branch referencing the supplied ref (defaulting to the project default branch) so it starts from the latest commit.