Install
openclaw skills install pr-auto-reviewAutomated PR review pipeline: code review + service health check + Discord notification. Trigger when a new PR is submitted or when running post-merge validation. Handles: PR diff analysis, CI/CD status check, secret scanning, service health probes, and posting structured results to a Discord channel via webhook. Use phrases: "review this PR", "run PR checks", "auto-review", "PR pipeline", "check PR and notify Discord", "post-merge health check".
openclaw skills install pr-auto-reviewAutomated pipeline that runs when a new PR is submitted:
# Review a GitHub PR and notify Discord
bash scripts/pr-auto-review.sh \
--pr-url https://github.com/org/repo/pull/123 \
--discord-webhook https://discord.com/api/webhooks/.../...
# Review a branch diff
bash scripts/pr-auto-review.sh \
--branch feature/new-api \
--discord-webhook https://discord.com/api/webhooks/.../...
# Review last commit, skip health check
bash scripts/pr-auto-review.sh --skip-healthcheck
# Save report to file
bash scripts/pr-auto-review.sh --pr-url ... --report ./review-report.md
| Flag | Description |
|---|---|
--pr-url <url> | GitHub PR URL (extracts PR number automatically) |
--branch <name> | Branch to diff against main/master |
--discord-webhook <url> | Discord webhook URL for notification |
--skip-healthcheck | Skip service health probes |
--report <path> | Save markdown report to file |
gh CLIgh pr checks)healthcheck skill is installed, runs healthcheck.sh --jsongh CLI (authenticated) — for PR datagit — for branch diffscurl — for health probes and Discord webhookjq — for JSON payload constructionSet up automatic PR review on a schedule:
# Example: check open PRs every 30 minutes
openclaw cron add --name "pr-review-poll" --every 30m \
--message "Run pr-auto-review on any new open PRs and notify Discord"
For real-time triggering, configure a GitHub webhook to call an endpoint that invokes this skill. The pipeline script accepts --pr-url to target the specific PR.
The script outputs a markdown report to stdout and optionally saves it to a file. The report includes: