Coze
Official siteLow-code agent workflow platform for fast automation delivery.
OpenAutomatically assess the correctness of code changes on PR creation, provide confidence scores, and trigger manual review when confidence is low, boosting code quality and team efficiency.
When a pull request is opened on {repo_url} for branch {branch_name}, run AI analysis to generate review comments and a confidence score. If the score is above {confidence_threshold}, auto-approve and merge; otherwise, request human review. Store the analysis in {log_path}.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
Filling hint: replace this with your real business context.
{branch_name}Branch name of the PR
Filling hint: replace this with your real business context.
{confidence_threshold}Confidence threshold for auto-approval (0-1)
Filling hint: replace this with your real business context.
{log_path}Path or database table to store AI analysis logs
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
{branch_name}Branch name of the PR
{confidence_threshold}Confidence threshold for auto-approval (0-1)
{log_path}Path or database table to store AI analysis logs
Generated Prompt Preview
When a pull request is opened on {repo_url} for branch {branch_name}, run AI analysis to generate review comments and a confidence score. If the score is above {confidence_threshold}, auto-approve and merge; otherwise, request human review. Store the analysis in {log_path}.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. Listen to PR creation events via GitHub Webhook.
2. Extract the diff, commit messages, and author info from the PR.
3. Send the diff and context to an AI model with a prompt requesting review comments and a confidence score.
4. Parse the AI response to obtain review comments and a confidence score.
5. If confidence ≥ {confidence_threshold}, use GitHub API to auto-approve and merge the PR; otherwise, post a review comment and notify the team for manual review.
6. Log the AI analysis, review comments, and confidence score to {log_path} for audit and future reference.
Development
Tools that work well with this template.