Automated pipeline that runs on new PR submission: code review → health check → Discord notification.
```bash
bash {baseDir}/scripts/pr_auto_check.sh --pr
```
--json: machine-readable output (for piping)--json: human-readable report printed to stdoutcode-review skill on the PR diff. Focus on:```bash
bash {baseDir}/scripts/notify_discord.sh --webhook
```
RESULT=$(bash {baseDir}/scripts/pr_auto_check.sh --pr 42 --json) && \
bash {baseDir}/scripts/notify_discord.sh --webhook "$WEBHOOK" --result "$RESULT"
gh CLI authenticated (gh auth login)jq for JSON processingcurl for Discord webhookDISCORD_WEBHOOK env var or pass --webhook)healthcheck skill installed for service health validationDISCORD_WEBHOOK in your environment or pass via --webhook| Code | Meaning |
|---|---|
| ------ | --------- |
| 0 | All checks passed |
| 1 | CI failures or health warnings |
| 2 | Critical health issues |
See references/output-format.md for the JSON schema.
共 3 个版本