GitLab MR Auto-Review & Risk Assessment
Triggered manually or by an app event. Connects Code, Condition, Gmail, HTTP request. - Triggers workflow when a merge request (MR) is created or updated. - Add GitLab credentials. Select mergerequests event. - Fetches code changes (diffs) from GitLab using API. - Replace Authorization token with your GitLab API key. - Ensures that MR contains changes before proceeding. - No setup required. - Call
Front matter
name: GitLab MR Auto-Review & Risk Assessment
description: Triggered manually or by an app event. Connects Code, Condition, Gmail, HTTP request. - Triggers workflow when a merge request (MR) is created or updated. - Add GitLab credentials. Select merge_requests event. - Fetches code changes (diffs) from GitLab using API. - Replace Authorization token with your GitLab API key. - Ensures that MR contains changes before proceeding. - No setup required. - Calls Claude AI to analyze the diff and generate: Risk Level, Issues, Recommendations, Test Cases. - Add Anthropic API Key (Claude AI). - Cleans and refines AI output for structured
category: Automation
kind: Workflow
software: Code|Condition|Gmail|HTTP requestGitLab MR Auto-Review & Risk Assessment
Triggered manually or by an app event. Connects Code, Condition, Gmail, HTTP request. - Triggers workflow when a merge request (MR) is created or updated.
- Add GitLab credentials. Select merge_requests event. - Fetches code changes (diffs) from GitLab using API.
- Replace Authorization token with your GitLab API key. - Ensures that MR contains changes before proceeding.
- No setup required. - Calls Claude AI to analyze the diff and generate: Risk Level, Issues, Recommendations, Test Cases.
- Add Anthropic API Key (Claude AI). - Cleans and refines AI output for structured
Steps
- Extract Diff (httpRequest)
- Distribution List Generator (code)
- If Some Change (if)
- Merge (merge)
- AI Agent (noOp)
- Auto-fixing Output Parser (noOp)
- Structured Output Parser (noOp)
- Anthropic Chat Model (noOp)
- Anthropic Chat Model1 (noOp)
- Comment Back on MR (httpRequest)
- Sticky Note1 (stickyNote)
- GitLab Trigger (gitlabTrigger)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Sticky Note4 (stickyNote)
- Sticky Note5 (stickyNote)
- Sticky Note6 (stickyNote)
- Sticky Note7 (stickyNote)
- Sticky Note8 (stickyNote)
- Sticky Note9 (stickyNote)
- Send to DL ( Email Notification) (gmail)
- GitLab Trigger1 (gitlabTrigger)
- GitLab Trigger2 (gitlabTrigger)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source: https://github.com/Zie619/n8n-workflows/blob/main/Gitlab/1895_Gitlab_Code_Automation_Webhook.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.