AcademyWorkflowsDevelopment

ChatGPT Automatic Code Review in GitLab MR

Engineering teams that want a quick second opinion on merge requests before a human review.

  • Recommendedour rating
  • 28,555views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

chatgpt-automatic-code-review-in-gitlab-mr.json

Loading the file...

What it does

An n8n workflow that reviews a GitLab merge request with ChatGPT. When someone comments +0 on the request, it fetches the code changes, sends them to the model for analysis and posts the review back into the discussion.

Use cases

  1. 01Get a first review on a merge request
  2. 02Spot issues before a teammate reads the diff
  3. 03Trigger a review by commenting on the request

Connects

HTTP Request · Code · Basic LLM Chain · OpenAI Chat Model

Questions about
ChatGPT Automatic Code Review in GitLab MR.

What is ChatGPT Automatic Code Review in GitLab MR used for?

Engineering teams that want a quick second opinion on merge requests before a human review. An n8n workflow that reviews a GitLab merge request with ChatGPT. When someone comments +0 on the request, it fetches the code changes, sends them to the model for analysis and posts the review back into the discussion.

How do I import ChatGPT Automatic Code Review in GitLab MR into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is ChatGPT Automatic Code Review in GitLab MR safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.