Integrations / Engineering

GitLab

Look up issues, merge requests and pipelines, open and update issues, comment, and trigger workflows from GitLab project events.

9 tools 13 trigger events

Tools

gitlab.list_issues

List a project's issues, newest first.

project*statelabelssearchper_page

gitlab.get_issue

Get an issue by its project-scoped number.

project*issue_iid*

gitlab.get_merge_request

Get a merge request by its project-scoped number, with its merge status and head pipeline.

project*merge_request_iid*

gitlab.list_pipelines

List a project's pipelines, newest first.

project*refstatusper_page

gitlab.create_issue writes

Open an issue in a project.

project*title*descriptionlabels

gitlab.update_issue writes

Close or reopen an issue, or change its labels.

project*issue_iid*state_eventadd_labelsremove_labels

gitlab.comment_on_issue writes

Add a comment to an issue.

project*issue_iid*body*

gitlab.api_get

Send a GET request to any GitLab API path under https://{host}/api/v4 and return the response. For endpoints the named tools don't cover.

path*params

gitlab.api_request writes

Send a POST, PUT, PATCH or DELETE request to any GitLab API path under https://{host}/api/v4.

method*path*paramsbody

Tick Allow raw writes on the connection to add api_request, which can send POST, PUT, PATCH and DELETE requests to any GitLab API path.

Connect

  1. In GitLab, select your avatar → Edit profile → Access → Personal access tokens and generate a token with the api scope, or read_api if workflows only read. A project or group access token works too.
  2. Paste it as the connection's access token.
  3. For a self-managed instance, set the host to its domain, e.g. gitlab.example.com. Leave it as gitlab.com for GitLab.com.
  4. To trigger workflows, add a webhook under the project's or group's Settings → Webhooks with the request URL shown on the connection page, set a secret token, choose the trigger events, and paste the same secret token on the connection.

Credentials

Access token Webhook secret token

GitLab API docs

Triggers

In GitLab, open the project's or group's Settings → Webhooks, add a webhook with this URL, set a secret token, choose the trigger events, and paste the same secret token on this connection.

Events

pushtag_pushissuenotemerge_requestpipelinebuilddeploymentreleasemilestonewiki_pageemojifeature_flag
trigger
kind: gitlab connection: gitlab events: [push] projects: [...] actions: [...]

Your next automation is one sentence away.

14-day free trial with $5 of built-in AI included. Cancel anytime.