Compartilhar via


GitLab (Independent Publisher)

A connector for GitLab DevOps platform. Create projects, repositories, CICD pipelines, forks, branches, and merge requests.

This connector is available in the following products and regions:

Service Class Regions
Logic Apps Standard All Logic Apps regions except the following:
     -   Azure Government regions
     -   Azure China regions
     -   US Department of Defense (DoD)
Power Automate Premium All Power Automate regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Power Apps Premium All Power Apps regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Contact
Name Roy Paar
Email roypaar@microsoft.com
Connector Metadata
Publisher Roy Paar
Website https://about.gitlab.com/
Privacy policy https://about.gitlab.com/privacy/
Categories IT Operations

Creating a connection

The connector supports the following authentication types:

Default Parameters for creating connection. All regions Not shareable

Default

Applicable: All regions

Parameters for creating connection.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
API Key securestring The Key for this API True

Throttling Limits

Name Calls Renewal Period
API calls per connection 100 60 seconds

Actions

compareRepo

Compare a branch, tag, or commit.

createBranch

Create a new branch.

createCommit

Create a new commit.

createProject

Create a new project.

createTrigger

Create a trigger for a project

enableRunner

Enable a runner in project.

forkProject

Fork a project.

getFile

Get a File from a Repository.

getVersion

Retrieve version information for this GitLab instance.

mergeMergeRequest

Merge a merge request.

mergeRequest

Create a merge request.

triggerPipeline

Trigger a CICD Pipeline.

updateMergeRequest

Update a merge request.

compareRepo

Compare a branch, tag, or commit.

Parameters

Name Key Required Type Description
The ID or URL-encoded path of the project owned by the authenticated user.
id True integer

The ID or URL-encoded path of the project owned by the authenticated user.

The commit SHA or branch name.
from True string

The commit SHA or branch name.

The commit SHA or branch name.
to True string

The commit SHA or branch name.

The ID from which to compare.
from_project_id integer

The ID from which to compare.

Returns

createBranch

Create a new branch.

Parameters

Name Key Required Type Description
ID or URL-encoded path of the project owned by the authenticated user.
id True integer

ID or URL-encoded path of the project owned by the authenticated user.

The name of the branch.
branch True string

The name of the branch.

Branch name or commit SHA from which to create a branch.
ref True string

Branch name or commit SHA from which to create a branch.

Returns

createCommit

Create a new commit.

Parameters

Name Key Required Type Description
The ID or URL-encoded path of the project
id True integer

The ID or URL-encoded path of the project

Name of the branch to commit into.
branch True string

Name of the branch to commit into.

Commit message
commit_message True string

Commit message

object

Returns

createProject

Create a new project.

Parameters

Name Key Required Type Description
The name of the new project.
name True string

The name of the new project.

Repository name for the new project.
namespace_id integer

Repository name for the new project.

Initialize the repository with a readme.
initialize_with_readme boolean

Initialize the repository with a readme.

Returns

createTrigger

Create a trigger for a project

Parameters

Name Key Required Type Description
The ID or URL-encoded path of the project owned by the authenticated user.
id True integer

The ID or URL-encoded path of the project owned by the authenticated user.

The trigger name.
description True string

The trigger name.

Returns

enableRunner

Enable a runner in project.

Parameters

Name Key Required Type Description
The ID or URL-encoded path of the project owned by the authenticated user.
id True integer

The ID or URL-encoded path of the project owned by the authenticated user.

The ID of a runner.
runner_id True integer

The ID of a runner.

Returns

forkProject

Fork a project.

Parameters

Name Key Required Type Description
The ID or URL-encoded path of the project.
id True integer

The ID or URL-encoded path of the project.

The path assigned to the resultant project after forking.
path string

The path assigned to the resultant project after forking.

The name assigned to the resultant project after forking.
name string

The name assigned to the resultant project after forking.

Returns

getFile

Get a File from a Repository.

Parameters

Name Key Required Type Description
The ID or URL-encoded path of the project owned by the authenticated user
id True integer

The ID or URL-encoded path of the project owned by the authenticated user

URL encoded full path to new file.
file_path True string

URL encoded full path to new file.

The name of branch tag or commit
ref True string

The name of branch tag or commit

Returns

getVersion

Retrieve version information for this GitLab instance.

Returns

mergeMergeRequest

Merge a merge request.

Parameters

Name Key Required Type Description
The ID or URL-encoded path of the project owned by the authenticated user.
id True integer

The ID or URL-encoded path of the project owned by the authenticated user.

The internal ID of the merge request.
merge_request_iid True integer

The internal ID of the merge request.

Custom merge commit message.
merge_commit_message string

Custom merge commit message.

If true the commits are squashed into a single commit on merge.
squash boolean

If true the commits are squashed into a single commit on merge.

If true removes the source branch.
should_remove_source_branch boolean

If true removes the source branch.

Returns

mergeRequest

Create a merge request.

Parameters

Name Key Required Type Description
The ID or URL-encoded path of the project owned by the authenticated user
id True integer

The ID or URL-encoded path of the project owned by the authenticated user

The source branch.
source_branch True string

The source branch.

The target branch.
target_branch True string

The target branch.

Title of the merge request.
title True string

Title of the merge request.

Returns

triggerPipeline

Trigger a CICD Pipeline.

Parameters

Name Key Required Type Description
The ID or URL-encoded path of the project owned by the authenticated user.
id True integer

The ID or URL-encoded path of the project owned by the authenticated user.

URL encoded full path to new file.
token True string

URL encoded full path to new file.

The name of branch tag or commit.
ref True string

The name of branch tag or commit.

Returns

updateMergeRequest

Update a merge request.

Parameters

Name Key Required Type Description
The ID or URL-encoded path of the project owned by the authenticated user.
id True integer

The ID or URL-encoded path of the project owned by the authenticated user.

The internal ID of the merge request.
merge_request_iid True integer

The internal ID of the merge request.

Update the status of the merge request ie close or reopen.
state_event string

Update the status of the merge request ie close or reopen.

Returns

Definitions

VersionResponse

Name Path Type Description
statusDetails
statusDetails statusDetails

ProjectResponse

Name Path Type Description
statusDetails
statusDetails statusDetails

BranchResponse

Name Path Type Description
statusDetails
statusDetails statusDetails

CommitResponse

Name Path Type Description
statusDetails
statusDetails statusDetails

CompareResponse

Name Path Type Description
statusDetails
statusDetails statusDetails

MergeResponse

Name Path Type Description
statusDetails
statusDetails statusDetails

GetFileResponse

Name Path Type Description
statusDetails
statusDetails statusDetails

CreateTriggerResponse

Name Path Type Description
statusDetails
statusDetails statusDetails

TriggerPipelineResponse

Name Path Type Description
statusDetails
statusDetails statusDetails

EnableRunnerResponse

Name Path Type Description
statusDetails
statusDetails statusDetails

statusDetails

Name Path Type Description
success
success boolean
statusCode
statusCode string
messages
messages array of messages

messages

Name Path Type Description
code
code string
description
description string
id
id string