Pull requests pile up. This setup posts an AI code review on every new PR, adds a clear label, and follows your team rules from a Google Sheet. It helps engineering teams speed up reviews and keep a steady quality bar.
When a pull request opens, the GitHub event starts the run. The HTTP Request step collects changed files and diffs from the GitHub API. A Code step formats those diffs into a short, structured prompt. The OpenAI Chat Model powers a Code Review Agent that reads the prompt and your best practices from Google Sheets, then writes a helpful review. A GitHub action posts the comment to the PR and can apply a ReviewedByAI label for easy tracking. The flow reduces back and forth, makes feedback consistent, and shortens the time to merge.
You will need GitHub access, an OpenAI key, and a Google Sheet with your rules. Expect review time per PR to drop from about 30 minutes to under 5 minutes, with more consistent feedback across the team. Great for small teams, open source maintainers, and squads that triage many PRs each day.