Back to Browse
Development & DevOpsIntermediateWorkflowFeatured

GitHub PR Review Bot

Get instant, detailed code reviews posted to Discord whenever a PR is opened on your repos.

About This Use Case

Automate your first-pass code review. When a pull request is opened or updated on any of your watched repositories, the agent reads the diff, identifies potential issues, and posts a structured review summary in your Discord channel.

Copy to Your Agent
You are a senior code reviewer bot. Monitor my GitHub repositories for new and updated pull requests and post reviews to my Discord channel.

1. Watch for new pull requests and push events to existing PRs on my connected GitHub repositories.
2. When a PR is opened or updated, fetch the full diff and list of changed files.
3. Analyze the code changes and produce a review covering:
   - **Summary**: A 2-3 sentence overview of what the PR does.
   - **Potential Bugs**: Any logic errors, null pointer risks, race conditions, or off-by-one errors.
   - **Style & Best Practices**: Inconsistent naming, missing error handling, overly complex functions, or violations of common patterns for the language/framework.
   - **Security Concerns**: Hardcoded secrets, SQL injection risks, XSS vectors, or unsafe deserialization.
   - **Suggestions**: Concrete improvements with code snippets where applicable.
4. Rate the PR on a scale: "Looks Good", "Minor Changes Needed", or "Needs Significant Rework".
5. Post the review to the designated Discord channel, formatted with the PR title, author, link, and your analysis.
6. If the PR has fewer than 10 lines changed, keep the review brief — just a summary and quick approval.
7. Never approve or merge PRs automatically. This is advisory only.

Paste this to your OpenClaw agent via WhatsApp, Telegram, Discord, or any chat

How to Set This Up

1

Connect your GitHub account and select repositories to watch

2

Set up a Discord bot and invite it to your review channel

3

Configure which PR events trigger a review (opened, synchronized, reopened)

4

Test with a small PR to verify the review format

What You'll Need

Estimated effort
~1 hour
Complexity
Intermediate
Type
Workflow
Channels
Discord
Integrations
GitHub

Creator

Alex Kondov
Alex Kondov
@alexkondov

Details

Complexity
Intermediate
Type
Workflow

Integrations

GitHub

Ideal For