Coze
Official siteLow-code agent workflow platform for fast automation delivery.
OpenAutomatically fetch PR diffs, generate AI-driven review comments, and post them back to GitHub to improve code quality and review speed for small to medium teams.
Retrieve the diff of pull request {pr_number} from repository {repo_url}, analyze the changes, and generate concise review comments for the role {reviewer_role}. Return the comments in JSON format with fields: file, line, comment.This section only explains placeholders. It is not an input form on this website. Copy the prompt, then replace variables in Coze / Dify / ChatGPT.
{repo_url}Full GitHub repository URL, e.g., https://github.com/owner/repo
Filling hint: replace this with your real business context.
{pr_number}Pull request number, e.g., 42
Filling hint: replace this with your real business context.
{reviewer_role}Reviewer role, e.g., "Senior Backend Engineer"
Filling hint: replace this with your real business context.
Fill variables below to generate a ready-to-run prompt in your browser.
{repo_url}Full GitHub repository URL, e.g., https://github.com/owner/repo
{pr_number}Pull request number, e.g., 42
{reviewer_role}Reviewer role, e.g., "Senior Backend Engineer"
Generated Prompt Preview
Retrieve the diff of pull request {pr_number} from repository {repo_url}, analyze the changes, and generate concise review comments for the role {reviewer_role}. Return the comments in JSON format with fields: file, line, comment.Teams that need faster development output with more stable prompt quality.
Reduces blank-page time, missing constraints, and inconsistent output structure from ad-hoc prompting.
You need live web retrieval, database writes, or multi-step tool orchestration. Use full workflow automation for that.
Keep exploring with similar templates and matching tools.
No recent items yet.
1. Use the GitHub API to fetch the diff of PR {pr_number}.
2. Send the diff to OpenAI with a system prompt to generate review comments.
3. Parse the returned JSON to extract file, line, and comment.
4. Use the GitHub API to post the comments back to the PR.
5. Notify the team via Slack or email.
Development
Tools that work well with this template.