Review GitHub pull requests with GPT-4o and send feedback and Slack alerts
Automatically review pull requests with AI and post feedback as GitHub comments --- Who is this for Engineering teams, code reviewers, and tech leads who want to automate code review feedback. Ideal for repositories w...
Template notes
Automatically review pull requests with AI and post feedback as GitHub comments
---
Who is this for
Engineering teams, code reviewers, and tech leads who want to automate code review feedback. Ideal for repositories with high PR volume where consistent first-pass review is valuable.
What this workflow does
This workflow automates pull request code review using GPT-4o and routes findings to GitHub and Slack. When a pull request is opened, it fetches the raw diff, sends it to GPT-4o for analysis, and posts a formatted Markdown comment with severity rating, categorized issues, suggestions, and an overall score. Critical findings trigger immediate Slack alerts.
How to set up
1. Add your GitHub OAuth2 credential to the trigger and comment nodes 2. Add your OpenAI API credential to the GPT-4o node 3. Add your Slack OAuth2 credential to both Slack notification nodes 4. Configure n8n Variables: GITHUBOWNER, GITHUBREPO, and GITHUBTOKEN 5. Activate the workflow - the GitHub webhook registers automatically 6. Open a test pull request to verify end-to-end execution