Developer & DevOps

Connect GitLab events to n8n workflows with batch processing

21 nodes 291 148 Automatic trigger
Download

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. 1.Activate manual trigger or receive GitLab webhook events for repository actions
  2. 2.Process incoming GitLab events in batches using Split In Batches node
  3. 3.Extract relevant data from GitLab payload and apply conditional routing logic
  4. 4.Execute associated n8n actions or fetch additional data based on event type
  5. 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

Split In Batches Gitlab N8N

Details

Trigger Automatic trigger
Nodes 21
Apps 3
Views 291
Downloads 148

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (21)

/

When clicking "Test Workflow"

Manual Trigger

#1

Globals

Set

#2

Result

No Op

#3

Current workflow

No Op

#4

Loop Over Workflows

Split In Batches

#5

Get file

Gitlab

#6

File status

Code

#7

Status error

Set

#8

End Loop

No Op

#9

Create file

Gitlab

#10

Extract From File

Extract From File

#11

Switch

Switch

#12

New file version

Gitlab

#13

Error output to normal output

No Op

#14

Status new

Set

#15

Status diff

Set

#16

Status same

Set

#17

Sticky Note

Sticky Note

#18

Sticky Note1

Sticky Note

#19

Retrieve all workflows

N8N

#20

Save each version in a different field

Set

#21