Templates / Review GitHub pull requests with AI and log results to PostgreSQL and Slack

Review GitHub pull requests with AI and log results to PostgreSQL and Slack

Ready for 3.0

by Oneclick AI Squad ✓ · 156 views · created 2026-02-24 · Engineering, AI Summarization

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-10-19.

What this workflow does

This workflow has 10 nodes and runs on Github events (pull request). Along the way it connects GitHub and Postgres.

How it runs

Trigger: On Github events (pull request).

  1. Fetch Changed Files in PR (HTTP Request): calls an HTTP API
  2. Merge: merges the data from its input branches
  3. Extract Code Diffs (Code): runs custom JavaScript code
  4. Score Review & Categorize Issues (Code): runs custom JavaScript code
  5. Route by Review Severity (Switch): routes items into 2 branches
  6. Post Review to GitHub PR (HTTP Request): calls an HTTP API (POST)
  7. Store Review Results in PostgreSQL (Postgres): uses Postgres
  8. Send Summary to Slack (HTTP Request): calls an HTTP API (POST)
  9. Log Review Completion (Code): runs custom JavaScript code

Services it uses

GitHubPostgres

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.

Nodes used (6)

From the author

Automatically detects new GitHub Pull Requests, analyzes changed code with AI, generates detailed review comments (quality, security, performance, best practices), posts suggestions back to the PR, stores results in a database, and sends notifications. Good…

Excerpt from Oneclick AI Squad'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.