Available actions in GitLab for Workflows
Latest Dynatrace
The following workflow actions are available for the GitLab for Workflows integration. Each action corresponds to an endpoint of the GitLab for Workflows API.
For details on creating workflows, refer to Create workflows in Dynatrace Workflows.
The actions are listed under the following categories:
Create file
Creates a new file in a new branch based on the specified base branch.
The action can only act on one file, resulting in the creation of a new branch. The GitLab API doesn't allow the reuse of existing branches. Any attempt to do so results in the GitLab API throwing an error.
Inputs
Output
Returns fields as described in the Repository files API - Create new file in repository GitLab documentation.
Get file
Gets a file from a repository.
This action should only be used to retrieve the contents of a plain-text file.
Inputs
Output
Returns fields as described in the Repository files API - Get file from repository GitLab documentation.
Update file
Updates a file in your GitLab repository. This action creates a new branch based on the specified base branch.
The action can only act on one file, resulting in the creation of a new branch. The GitLab API doesn't allow the reuse of existing branches. Any attempt to do so results in the GitLab API throwing an error.
Inputs
Output
Returns fields as described in the Repository files API - Update existing file in repository GitLab documentation.
Delete file
Deletes a file in your GitLab repository. This action creates a new branch based on the specified base branch.
The action can only act on one file, resulting in the creation of a new branch. The GitLab API doesn't allow the reuse of existing branches. Any attempt to do so results in the GitLab API throwing an error.
Inputs
Output
Returns fields as described in the Repository files API - Delete existing file in repository GitLab documentation.
Create merge request
Creates a merge request in your GitLab repository.
Inputs
Output
Returns fields as described in the Merge requests API - Create MR GitLab documentation.
Get merge request
Gets a single merge request in GitLab.
Inputs
Output
Returns fields as described in the Merge requests API - Get single MR GitLab documentation.
List merge requests
Gets a list of merge requests in your GitLab repository.
Inputs
Output
Returns fields as described in the Merge requests API - List merge requests GitLab documentation.
Merge a merge request
Merges a merge request in your GitLab repository.
Inputs
Output
Returns fields as described in the Merge requests API - Merge a merge request GitLab documentation.
Update merge request
Updates an existing merge request in your GitLab repository.
Inputs
Output
Returns fields as described in the Merge requests API - Update MR GitLab documentation.
Create new issue
Creates a new issue in your GitLab repository.
Inputs
Output
Returns fields as described in the Issues API - New issue GitLab documentation.
Edit issue
Edits an issue in your GitLab repository.
Inputs
Output
Returns fields as described in the Issues API - Edit an issue GitLab documentation.
List issues
Gets a list of issues from your GitLab repository.
Inputs
Output
Returns fields as described in the Issues API - List issues GitLab documentation.
Get pipeline status
Gets the status of a pipeline running in your GitLab repository.
Inputs
Output
Returns fields as described in the Jobs API - Get a single job GitLab documentation.
Trigger a new pipeline
Triggers a new run of a pipeline in your GitLab repository.
Inputs
You can also set any number of build parameters.
Output
Returns fields as described in the Jobs API - Run a job GitLab documentation.