Automated pipeline that runs on every new PR submission:
gh pr diff, CI/CD status checkbash
# Full pipeline (review + health + Discord)
bash {baseDir}/scripts/pr-check.sh <PR_URL> <DISCORD_WEBHOOK_URL>
# Review + health only (no Discord)
bash {baseDir}/scripts/pr-check.sh <PR_URL>
When a new PR is submitted, run the script with the PR URL. The PR URL must be a GitHub pull request URL ( https://github.com/owner/repo/pull/123).
The script extracts the PR number, fetches the diff and CI status via gh, and writes them to a temp directory. The agent then reads the diff and performs a structured review following the code-review skill's guidelines (quality, security, performance, test coverage).
Runs the healthcheck skill ( healthcheck.sh --json) if installed; otherwise emits a stub. The JSON output includes per-service status and a severity level:
SeverityMeaning0All healthy1Warnings2Critical
If a Discord webhook URL is provided, the script posts a color-coded embed:
The embed includes the health summary and PR link.
A JSON report is written containing timestamp, PR metadata, and health results. The agent uses this to compose a final summary.
VariableRequiredDescriptionPR_URLYesGitHub PR URLDISCORD_WEBHOOKNoDiscord webhook URL for notifications
gh (GitHub CLI) — authenticatedjq — JSON processingcurl — Discord webhookpython3 — health summary formattingTo run automatically on PR events, set up a cron job or webhook that calls:
text
bash {baseDir}/scripts/pr-check.sh <PR_URL> <WEBHOOK>
Or use the agent directly:
text
Run the PR automate check for <PR_URL> and post results to Discord.