GitHub Code Review Bot via Telegram
OpenClaw monitors GitHub PRs, performs automated code reviews, and sends merge verdicts via Telegram. Developers approve or reject PRs without opening their laptop.
A development team set up their OpenClaw agent as a code review assistant that watches GitHub pull requests and delivers verdicts via Telegram.
Workflow
1. PR Detection: Webhooks trigger when a new PR is opened
2. Code Analysis: Agent reads the diff, understands the context from surrounding code
3. Review Generation: Produces a structured review covering:
- Code quality issues
- Potential bugs
- Performance concerns
- Style/convention adherence
- Security red flags
4. Telegram Delivery: Sends a summary with approve/request-changes recommendation
5. Quick Actions: Developer can reply in Telegram to approve, comment, or request changes
What It Catches
- Obvious bugs (null checks, off-by-one errors)
- Style inconsistencies
- Missing error handling
- Security issues (exposed secrets, SQL injection patterns)
- Performance anti-patterns
What It Misses
- Business logic correctness (it doesn't know your domain)
- Architectural decisions
- UX implications of code changes
Best Practice
Use as a first-pass reviewer, not a replacement for human review. It catches the mechanical issues so human reviewers can focus on design and logic.
Requirements
- Always-on machine
- Claude API Key
- GitHub account + webhook access
- Telegram Bot Token