GitLab logo
Slack logo

Workflow template

Notify Slack about new GitLab merge requests

Announce new GitLab merge requests in Slack. Post the title, MR number, project, author, source and target branches and GitLab link as plain text.

How it works

From a new merge request to a Slack review notice

1 Trigger · 1 Action
GitLab1 · Trigger

Merge Request

Receive merge request events for your selected GitLab project. The prepared Actions filter is open, excluding edits, approvals, merges and closures.

Slack2 · Action

Notify the review channel

Post the MR’s project-local !number, title, project path, author, source-to-target branches and source URL. Use plain text with link and media previews disabled.

The result

An incoming merge request in the review channel

The message identifies the proposed branch change and links to GitLab. It does not copy the description, code diff or attachments.

Example GitLab merge request notice

New GitLab merge request !57: Improve onboarding instructions — Grüße aus Hamburg Project: example-studio/example-portal Opened by: alex-example Branches: example-onboarding -> main https://gitlab.com/example-studio/example-portal/-/merge_requests/57

Fictional MR. The !57 number identifies the merge request within its project. Channel membership does not grant GitLab access.

Before activation

Set up your workflow

  1. Connect GitLab and choose the project

    Connect GitLab and use the standard resource browser to select the source project. Review the prepared open Actions filter for new merge requests.

  2. Select the Slack review channel

    Connect Slack and choose a channel where FastHook can post. Review its members because project paths, titles, author names and branch names will be visible there.

  3. Wait for Connected before opening a test MR

    Activate and wait for the trigger to show Connected. Then open a fictional merge request in the selected project and compare the Slack notice’s number, branch direction and GitLab URL.

Details and limitations
  • The prepared action filter is open. It reports new merge requests. Edits, approvals, merges and closures do not send another creation alert. Existing merge requests are not imported.

  • One-way metadata announcements. Descriptions, code and attachments are not copied. The recipe does not assign reviewers, track approvals or synchronize Slack messages with later GitLab status changes.

  • Source access and repeated notices. Channel readers can see the copied metadata, but still need permission to open the GitLab source. Link previews are disabled. A manual rerun can post the same merge request again.

Questions about this template

Which GitLab action is selected by default?

The trigger is prepared with open. It handles new merge requests rather than edits, approvals, merges or closures.

Will approvals or merges update the Slack notice?

No. Those events are excluded by the open filter, and the workflow has no message-update or review-status synchronization step.

Does Slack receive the merge request’s description or code?

No. It receives title, MR number, project, author, branch direction and source link. Descriptions, code and attachments are not mapped.

When should I open the test merge request?

Activate and wait for the trigger to show Connected first. Then open a fictional MR in the selected project. Existing merge requests are not backfilled.

Explore connected apps