Skip to main content
Kinetic Community

GitLab Branch Create

Creates a new branch in an existing GitLab project.

Downloads

By downloading this file, you acknowledge that you agree to our Terms of Service

gitlab_branch_create_v1.zip

Detailed Description

Creates a new branch using an existing branch or commit SHA in an existing GitLab project using a user's private token (obtained in GitLab under the intended user's 'Settings' => 'Account'). The source location for the new branch is found through providing the projects path (which is the project name provided in the URL - not necessarily the same as the readable name) and an existing branch or commit SHA. Once this is found, the new branch will be created with the given name and the previously found source. An empty result set will be returned on a successful branch creation.

Parameters

Name Description
Project Group Path of the group where the project is located (defaults to the GitLab default group if not provided).
Project Path Path of the project where the branch should be created.
Branch Name for the new branch.
Branch Source Name of another branch to use as a source for the new branch (can also use a commit SHA).

Sample Configuration

Parameter Example Configuration
Project Group super-secret-group
Project Path test-project
Branch master
Branch Source develop

Results

This handler returns no results

Change Log

Version Date Description
1 2017-10-02 * Initial version. See README for details.