Templates / Automate code reviews for GitLab MRs with Gemini AI and JIRA context

Automate code reviews for GitLab MRs with Gemini AI and JIRA context

Ready for 3.0

by Evgeny Agronsky · 1,458 views · created 2025-08-26 · AI Summarization, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. Need Review (If): checks a condition and branches into true / false
  2. Get Static Context Including Error (Code): runs custom JavaScript code
  3. Set workflow execution information (Code): runs custom JavaScript code
  4. Post Error Occurred (HTTP Request): calls an HTTP API (POST)
  5. Post Review Started (HTTP Request): calls an HTTP API (POST)
  6. Extract MR Details (Edit Fields (Set)): sets 3 fields: projectId, iid, description
  7. Cleanup Static Context (Code): runs custom JavaScript code
  8. Get MR Changes (HTTP Request): calls an HTTP API
  9. Extract the JIRA Issue ID (Code): runs custom JavaScript code
  10. Merge: merges the data from its input branches

…plus 22 more steps. See the full node list below.

Services it uses

Google Gemini Chat ModelJira Software

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (12)

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…

Excerpt from Evgeny Agronsky's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.