workflows.fit
Back to n8n workflows
n8n templateFreeBy Jihene

Automated PR code reviews with GitHub, GPT-4, and Google Sheets best practices

AI-Agent Code Review for GitHub Pull Requests Description: This n8n workflow automates the process of reviewing code changes in GitHub pull requests using an OpenAI-powered agent. It connects your GitHub repo, extract...

DevelopmentCore NodesAILangchainLm Chat Open AiGithub TriggerHttp RequestCode
Loading interactive preview...

Template notes

AI-Agent Code Review for GitHub Pull Requests

Description:

This n8n workflow automates the process of reviewing code changes in GitHub pull requests using an OpenAI-powered agent.

It connects your GitHub repo, extracts modified files, analyzes diffs, and uses an AI agent to generate a code review based on your internal code best practices (fed from a Google Sheet).

It ends by posting the review as a comment on the PR and tagging it with a visual label like βœ… Reviewed by AI.

πŸ”§ What It Does 1. Triggered on PR creation

3. Extracts code diffs from the PR

5. Formats and feeds them into an OpenAI prompt