workflows.fit
Back to n8n workflows
n8n templateFreeBy Aditya Gaur

Automate GitLab merge requests using APIs with n8n

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...

DevelopmentCore NodesHttp RequestIfSplit In BatchesWait
Loading interactive preview...

Template notes

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