This example is available on GitHub: examples/03_github_workflows/02_pr_review/
- Requesting
openhands-agentas a reviewer - Adding the
review-thislabel to the PR
The reference workflow triggers on either the “review-this” label or when the openhands-agent account is requested as a reviewer. In OpenHands organization repositories, openhands-agent has access, so this works as-is. In your own repositories, requesting openhands-agent will only work if that account is added as a collaborator or is part of a team with access. If you don’t plan to grant access, use the label trigger instead, or change the condition to a reviewer handle that exists in your repo.
examples/03_github_workflows/02_pr_review/workflow.yml
Quick Start
Features
- Fast Reviews - Results 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
Security
- Users with write access (maintainers) can trigger reviews by requesting
openhands-agentas a reviewer or adding thereview-thislabel. - Maintainers need to read the PR to make sure it’s safe to run.

