Content: 01730.zip (37.39 KB)
Uploaded: 11.01.2026

Positive responses: 0
Negative responses: 0

Sold: 0
Refunds: 0

$7
# GitLab merge request management: automated creation, closing, and merging on schedule

This workflow automates routine merge request operations in GitLab—creation, closure, and merging—without manual intervention. Ideal for teams using scheduled deployments and aiming to streamline CI/CD processes.

## Who it´s for
- Developers automating CI/CD in GitLab
- DevOps engineers managing multiple merge requests
- Teams using regular scheduled deployments

## What the automation does
- Checks for existing MRs by branch name
- Creates new MRs or closes outdated ones as needed
- Adds comments (e.g., build status) to MRs
- Waits for pipeline completion before merging
- Confirms merge when pipeline succeeds
- Triggered on a cron schedule (e.g., nightly)

## What´s included
- Ready-to-use n8n workflow
- Trigger and handler logic based on GitLab API
- Integrations only with GitLab via HTTP API
- Basic text instructions for setup and adaptation

## Requirements for setup
- GitLab account with API access
- Personal access token with MR and pipeline permissions
- Running and configured n8n instance

## Benefits and outcomes
- Eliminates manual effort during regular deployments
- Reduces risk of errors in MR handling
- Ensures consistency across CI/CD workflows
- Prevents merge conflicts by closing stale feature branches
- Automatically waits for successful builds before merging
- Scalable: one template works across multiple branches

## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet