Connect GitLab events to n8n workflows with batch processing
Workflow Description
An automation that bridges GitLab with n8n by triggering custom workflows in response to repository events, featuring batch processing of events and conditional logic to handle complex DevOps scenarios efficiently and at scale.
How it works
- 1.Activate manual trigger or receive GitLab webhook events for repository actions
- 2.Process incoming GitLab events in batches using Split In Batches node
- 3.Extract relevant data from GitLab payload and apply conditional routing logic
- 4.Execute associated n8n actions or fetch additional data based on event type
- 5.Log and monitor workflow execution results and processed event history
Use cases
- Trigger automated CI/CD pipelines when code is pushed to specific branches
- Create alerts or tasks in project management tools when merge requests are opened
- Synchronize issues, labels, and project metadata from GitLab to external systems
Requirements
- Active GitLab account with webhook and API management permissions
- Valid API tokens for both GitLab and n8n platforms
- Understanding of GitLab webhook event structures and n8n workflow composition
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (21)
When clicking "Test Workflow"
Manual Trigger
Globals
Set
Result
No Op
Current workflow
No Op
Loop Over Workflows
Split In Batches
Get file
Gitlab
File status
Code
Status error
Set
End Loop
No Op
Create file
Gitlab
Extract From File
Extract From File
Switch
Switch
New file version
Gitlab
Error output to normal output
No Op
Status new
Set
Status diff
Set
Status same
Set
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Retrieve all workflows
N8N
Save each version in a different field
Set