Skip to main content
This example is available on GitHub: examples/03_github_workflows/02_pr_review/
Automatically review pull requests when labeled with review-this, providing feedback on code quality, security, and best practices.
agent-sdk/examples/03_github_workflows/01_basic_action/workflow.yml

Quick Start

# 1. Copy workflow to your repository
cp examples/03_github_workflows/02_pr_review/workflow.yml .github/workflows/pr-review.yml

# 2. Configure secrets in GitHub Settings → Secrets
# Add: LLM_API_KEY

# 3. Create a "review-this" label in your repository
# Go to Issues → Labels → New label

Features

  • Automatic Trigger - Reviews start when review-this label is added and is posted on the PR in only 2 or 3 minutes
  • Comprehensive Analysis - Analyzes the changes given the repository context. Covers code quality, security, best practices
  • GitHub Integration - Posts comments directly to the PR