GitLab Branch Create VERSION 1


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

NameDescription
Project GroupPath of the group where the project is located (defaults to the GitLab default group if not provided).
Project PathPath of the project where the branch should be created.
BranchName for the new branch.
Branch SourceName of another branch to use as a source for the new branch (can also use a commit SHA).

Sample Configuration

NameDescription
Project Groupsuper-secret-group
Project Pathtest-project
Branchmaster
Branch Sourcedevelop

Results

This handler does not return any results.


Changelog

GitLab Branch Create V1 (2017-10-02)

* Initial version. See README for details.