Automate code reviews for GitLab MRs with Gemini AI and JIRA context
Ready for 3.0What this workflow does
This AI workflow has 35 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Gemini Chat Model and Jira Software.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Need Review (If): checks a condition and branches into true / false
- Get Static Context Including Error (Code): runs custom JavaScript code
- Set workflow execution information (Code): runs custom JavaScript code
- Post Error Occurred (HTTP Request): calls an HTTP API (POST)
- Post Review Started (HTTP Request): calls an HTTP API (POST)
- Extract MR Details (Edit Fields (Set)): sets 3 fields: projectId, iid, description
- Cleanup Static Context (Code): runs custom JavaScript code
- Get MR Changes (HTTP Request): calls an HTTP API
- Extract the JIRA Issue ID (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
…plus 22 more steps. See the full node list below.
Services it uses
Other Google Gemini + Jira templates (11)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Code
n8n-nodes-base.code - Jira Software
n8n-nodes-base.jira - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - HTTP Request
n8n-nodes-base.httpRequest - Error Trigger
n8n-nodes-base.errorTrigger - Aggregate
n8n-nodes-base.aggregate - Split Out
n8n-nodes-base.splitOut - Webhook
n8n-nodes-base.webhook
From the author
What it does Automates code review by listening for a comment trigger on GitLab merge requests, summarising the diff, and using an LLM to post constructive, line‑specific feedback. If a JIRA ticket ID is found in the MR description, the ticket’s summary is…