This example is available on GitHub: examples/03_github_workflows/01_basic_action/assign-reviews.yml
How it works
It relies on the basic action workflow (01_basic_action) which provides a flexible template for running arbitrary agent tasks in GitHub Actions.
Core Components:
agent_script.py- Python script that initializes the OpenHands agent with configurable LLM settings and executes tasks based on provided promptsworkflow.yml- GitHub Actions workflow that sets up the environment, installs dependencies, and runs the agent
PROMPT_STRING- Direct inline text for simple prompts (used in this example)PROMPT_LOCATION- URL or file path for external prompts
Assign Reviews Use Case
This specific implementation uses the basic action template to handle three PR management scenarios: 1. Need Reviewer Action- Identifies PRs waiting for review
- Notifies reviewers to take action
- Finds stale PRs with no activity for 5+ days
- Prompts authors to update, request review, or close
- Detects non-draft PRs without assigned reviewers (created 1+ day ago, CI passing)
- Uses git blame analysis to identify relevant contributors
- Automatically assigns reviewers based on file ownership and contribution history
- Balances reviewer workload across team members
Quick Start
Features
- Intelligent Assignment - Uses git blame to identify relevant reviewers based on code ownership
- Automated Notifications - Sends contextual reminders to reviewers and authors
- Workload Balancing - Distributes review requests evenly across team members
- Scheduled & Manual - Runs daily automatically or on-demand via workflow dispatch

