PR Auto-Check
End-to-end automated check for new pull requests: code review → health check → Discord notification.
Workflow
-
Run automated checks — execute the bundled script:
bash {baseDir}/scripts/pr-auto-check.sh --pr <PR_NUMBER> [--repo <owner/repo>] --json- Omit
--prto auto-detect from current branch - Add
--jsonfor machine-readable output
- Omit
-
Interpret results — the JSON contains:
review.status:ok|ci_failed|no_pr|no_ghhealth.status:ok|warn|criticalreview.detail/health.detail: human-readable summary
-
Conduct deeper code review (if review.status is ok or ci_failed):
- Use the
code-reviewskill for a full systematic review - Focus on critical/warning issues from CI failures first
- Use the
-
Notify Discord — format and send results:
- See discord-formats.md for templates
- Use the
messagetool:action=send,channel=discord,target=<channel> - Route critical health issues to ops channels, critical review issues to security channels
-
Report outcome — summarize what passed and what needs attention
Exit Criteria
| review | health | Action |
|---|---|---|
| ok | ok | ✅ Notify "ready to merge" |
| ok | warn | ⚠️ Notify with warning detail |
| ci_failed | any | 🚫 Notify with CI failure detail, skip merge |
| no_pr | any | ℹ️ Notify "no PR found", suggest manual trigger |
Dependencies
ghCLI (GitHub) — for PR and CI/CD datacurl— for health check fallback- Healthcheck skill — preferred for service status
- Discord channel access via OpenClaw message tool