Merge a PR and monitor the deployment end-to-end — watch the build, check for errors, self-heal failures, verify the deploy is clean
One command to merge a PR and ensure the deployment succeeds. Monitors the build, checks for runtime errors, and auto-fixes failures.
/deploy-verify — merge the current branch's PR and monitor deployment/deploy-verify 123 — merge PR #123 and monitor/deploy-verify --check-only — skip merge, just verify the latest deployment is healthy/deploy-verify --no-fix — monitor and report issues but don't auto-fixgh pr list --head $(git branch --show-current) to find the PR for the current branchRun in parallel:
gh pr checks — verify all CI checks passgh pr view --json mergeable — verify the PR is mergeableIf checks are failing:
gh pr merge --squash --delete-branch
Use --squash by default for clean history. Tell the user the merge is done.
After merging, the deployment pipeline starts. Monitor it:
If Vercel project (check for vercel.json or .vercel/):
vercel ls --limit 1 to get the latest deploymentvercel inspect <deployment-url> every 30 seconds (max 5 minutes) until state is READY or ERRORIf no Vercel detected:
If the build fails:
vercel logs <deployment-url> or check CI outputgit checkout -b fix/deploy-$(date +%s)fix: resolve deployment failure — [description]/deploy-verify on the fix PROnce the deployment is live, verify it's healthy:
Health checks (run in parallel):
/api/health or similar endpoint, check itSentry check (if SENTRY_AUTH_TOKEN is available):
If runtime errors found (unless --no-fix):
Display a deployment summary:
Deployment Report
─────────────────
PR: #123 — feat: add user authentication
Merged: ✓ (squash merged, branch deleted)
Build: ✓ READY (took 2m 15s)
Health: ✓ All routes returning 200
Sentry: ✓ No new errors (or: ⚠ 2 new errors found)
URL: https://your-app.vercel.app
If any issues were found and fixed, include:
Auto-fixes applied:
- fix/deploy-1234567: resolved Node 24.x compatibility issue → PR #125