n8nv2.0.1DevOps

Automated PR Review

A first-pass code reviewer that catches style, security, and obvious logic issues before a human even opens the PR.

Overview

A GitHub webhook fires the workflow on every PR open or sync. n8n pulls the diff, sends it to an LLM with a curated review prompt, and posts the structured response back as a PR comment. Slack gets a one-line summary in the team channel.

Inline PR comments

The bot leaves comments on specific lines, not a wall of text at the bottom.

Configurable severity

Tune the prompt to match team taste — strict for prod, light-touch for experiments.

Setup Guide

1

Add a GitHub webhook

Repo Settings → Webhooks → add the n8n endpoint, enable Pull Request events, set the secret token.

2

Drop in your OpenAI / Anthropic key

The workflow uses the OpenAI node by default but swaps cleanly to Claude — change the credential and model name.

3

Pick the Slack channel

Update the Slack node to point at the channel that should get the digest.