GitLab MR Auto-Review & Risk Assessment
Configured with Agent, Gitlab Trigger, Gmail, HTTP Request, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Web / API
- Code
- Routing
- Transform
- AI & models
- Trigger
- Messaging
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Extract Diff | Web / API | HTTP Request | See node parameters |
| Distribution List Generator | Code | Code | See node parameters |
| If Some Change | Routing | If | See node parameters |
| Merge | Transform | Merge | See node parameters |
| AI Agent | AI & models | Agent | See node parameters |
| Auto-fixing Output Parser | Transform | Output Parser Autofixing | See node parameters |
| Structured Output Parser | Transform | Output Parser Structured | See node parameters |
| Anthropic Chat Model | AI & models | Anthropic Chat Model | See node parameters |
| Anthropic Chat Model1 | AI & models | Anthropic Chat Model | See node parameters |
| Comment Back on MR | Web / API | HTTP Request | POST |
| GitLab Trigger | Trigger | Gitlab Trigger | See node parameters |
| Send to DL ( Email Notification) | Messaging | Gmail | See node parameters |
| GitLab Trigger1 | Trigger | Gitlab Trigger | See node parameters |
| GitLab Trigger2 | Trigger | Gitlab Trigger | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
anthropicApigitlabApigmailOAuth2
Workflow notes
Sticky Note1
-
Triggers workflow when a merge request (MR) is created or updated.
-
Add GitLab credentials. Select merge_requests event.
Sticky Note2
-
Fetches code changes (diffs) from GitLab using API.
-
Replace Authorization token with your GitLab API key.
Sticky Note3
-
Ensures that MR contains changes before proceeding.
-
No setup required.
Sticky Note4
-
Calls Claude AI to analyze the diff and generate: Risk Level, Issues, Recommendations, Test Cases.
-
Add Anthropic API Key (Claude AI).
Sticky Note5
- Cleans and refines AI output for structured reporting.
- No setup required.
Sticky Note7
-
Creates a list of developers & QA testers for email notifications.
-
Update email mappings for your team.
Sticky Note8
-
Sends an HTML-formatted MR Report to developers & QA teams.
-
Add Gmail credentials.
Sticky Note9
- Posts AI-generated review report as a GitLab MR comment.
- Replace Authorization token with your GitLab API key.
GitLab MR Auto-Review & Risk Assessment
GitLab MR Auto-Review & Risk Assessment
Purpose and structure
This folder contains the GitLab MR Auto-Review & Risk Assessment workflow. Its executable nodes use agent, code, gitlabTrigger, gmail, httpRequest, if, lmChatAnthropic, merge, outputParserAutofixing, outputParserStructured. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
GitLab Trigger, GitLab Trigger1, GitLab Trigger2
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Gitlab/1895_Gitlab_Code_Automation_Webhook.json MIT; preserve source notices.