Skip to content
FlowHubFluxonLab
HTTP Request
General Automationfree

Automate GitLab Merge Requests Using APIs with n8n

by Aditya Gauradapted from n8n official workflow galleryUpdated Aug 2026
RequiresHTTP RequestHTTP Request
Share Post Share
HRAPI to Check existing merge requestAPI to Check ex…IfIs ExistsHRCreate New Merge RequestCreate New Merg…SILoop Over ItemsHRAPI to CLOSE existing Merge RequestAPI to CLOSE ex…HRAdd Custom Notes To Merge RequestAdd Custom Note…Wa30 secs wait to approve merge request and pipeline to finish130 secs wait to…HRMerge When Pipeline SucceedsMerge When Pipe…SesetValueForMergeScSchedule Trigger1234567891011
1/5
STEPS · 11
Runs on a schedule

Who is this template for? This template is designed for developers, DevOps engineers, and automation enthusiasts who want to streamline their GitLab merge request process using n8n, a low-code workflow automation tool. It eliminates manual intervention by automating the merging of GitLab branches through API calls. How it works ? Trigger the workflow: The workflow can be triggered by a webhook, a scheduled event, or a GitLab event (e.g., a new merge request is created or approved). Fetch Merge Request Details: n8n makes an API call to GitLab to retrieve merge request details. Check Merge Conditions: The workflow validates whether the merge request meets predefined conditions (e.g., approvals met, CI/CD pipelines passed). Perform the Merge: If all conditions are met, n8n sends a request to the GitLab API to merge the branch automatically. Setup Steps 1. Prerequisites An n8n instance (Self-hosted or Cloud) A GitLab personal access token with API access A GitLab repository with merge requests enabled 2. Create the n8n Workflow Set up a trigger: Choose a trigger node (Webhook, Cron, or GitLab Trigger).

Tags

n8nreference-only
Connects
WHTTP Request
CategoryGeneral Automation
Triggermanual
Complexitymedium
Nodes10
AddedFeb 7, 2025
W
free

Tiny tiny Rss (aka tt-rss) Feed to Mastodon

Every 10 minutes look at your published news in your Tiny tiny RSS public feed and make a toot on your mastodon. You'll need: Your mastondon URL instance Your mastondon access token Your Tiny Tiny RSS public published feed URL

by dev
W
free

Listen on new emails on a IMAP mailbox

Listen on new emails on a given IMAP mailbox. Converts the binary XML attachment to a stringified xmlproperty on the $data object and converts it to JSON. The Setnode could be replaced with Function nodes for example to do a conversion/mapping/transformation. The JSON is ultimately sent to a HTTP Endpoint via POST. This could be a starter for EDI purposes like receiving or transmitting XML data and conversion via JSON object property mapping.

by mail
W
free

Extract post titles from a blog

This workflow uses n8n to extract the names of all the posts from the Hackernoon homepage.

by amudhan