{"schemaVersion":"1.0","source":"The Workflow Finder","sourceUrl":"https://www.theworkflowfinder.com","license":"Free to use with attribution and a link to the cited page","generated":"2026-08-28","workflow":{"title":"Automate Code Review and PR Feedback","slug":"automate-code-review-and-pr-feedback","url":"https://www.theworkflowfinder.com/workflows/automate-code-review-and-pr-feedback","description":"Set up an automated code review pipeline that catches issues, enforces style, and summarizes changes before a human reviewer ever opens the PR.","difficulty":"Advanced","timeEstimate":"3–5 hrs setup, then automated","schemaDuration":"PT5H","expectedResult":"A GitHub Actions workflow that automatically reviews every PR with AI feedback, style checks, and a plain-English summary of changes.","tags":["Development","Automation","Team Collaboration","Coding"]},"steps":[{"position":1,"title":"Define Your Review Standards","instructions":"Write a code review guide covering what your team cares about most: security patterns, performance anti-patterns, naming conventions, and test requirements. This becomes your AI reviewer's context.","input":"Workflow inputs: the topic, goal, or raw materials the user is starting from.","output":"Handoff artifact consumed by Step 2 (\"Set Up the GitHub Actions Workflow\").","toolSlots":[{"slug":"claude","name":"Claude","url":"https://www.theworkflowfinder.com/tools/claude","category":"Writing","pricing":"freemium","capabilities":["Long-form writing","Code generation","Web research"],"hasApi":true}]},{"position":2,"title":"Set Up the GitHub Actions Workflow","instructions":"Use GitHub Copilot to scaffold a GitHub Actions YAML that triggers on pull_request events and calls the Claude or OpenAI API with the diff and your review guide.","input":"Output of Step 1 (\"Define Your Review Standards\").","output":"Handoff artifact consumed by Step 3 (\"Write the Review Prompt\").","toolSlots":[{"slug":"github-copilot","name":"GitHub Copilot","url":"https://www.theworkflowfinder.com/tools/github-copilot","category":"Coding","pricing":"paid","capabilities":["Code generation","Code review","Debugging assistance"]}]},{"position":3,"title":"Write the Review Prompt","instructions":"Craft a structured prompt in Claude that takes a git diff and returns: critical issues, warnings, style suggestions, and a 2-sentence plain-English summary of what changed.","input":"Output of Step 2 (\"Set Up the GitHub Actions Workflow\").","output":"Handoff artifact consumed by Step 4 (\"Post Review Comments via API\").","toolSlots":[{"slug":"claude","name":"Claude","url":"https://www.theworkflowfinder.com/tools/claude","category":"Writing","pricing":"freemium","capabilities":["Long-form writing","Code generation","Web research"],"hasApi":true}]},{"position":4,"title":"Post Review Comments via API","instructions":"Extend the workflow to post the AI review output as a PR comment using the GitHub API. Use Cursor to write the API integration code.","input":"Output of Step 3 (\"Write the Review Prompt\").","output":"Handoff artifact consumed by Step 5 (\"Test on Real PRs\").","toolSlots":[{"slug":"cursor","name":"Cursor","url":"https://www.theworkflowfinder.com/tools/cursor","category":"Coding","pricing":"freemium","capabilities":["Code generation","Code review","Debugging assistance"]}]},{"position":5,"title":"Test on Real PRs","instructions":"Open 3–5 test PRs with intentional issues and refine the prompt until the feedback matches what your best human reviewer would say.","input":"Output of Step 4 (\"Post Review Comments via API\").","output":"Final workflow output: A GitHub Actions workflow that automatically reviews every PR with AI feedback, style checks, and a plain-English summary of changes.","toolSlots":[{"slug":"cursor","name":"Cursor","url":"https://www.theworkflowfinder.com/tools/cursor","category":"Coding","pricing":"freemium","capabilities":["Code generation","Code review","Debugging assistance"]},{"slug":"claude","name":"Claude","url":"https://www.theworkflowfinder.com/tools/claude","category":"Writing","pricing":"freemium","capabilities":["Long-form writing","Code generation","Web research"],"hasApi":true}]}]}