fix(review): fail loudly on empty harness output

Merged
KH
6mo ago
+36-0

Summary

  • make pr-reviewer surface non-zero harness exit codes and empty review output as explicit failures
  • post a visible GitHub/Slack failure artifact instead of silently continuing as if the PR was reviewed

Tests

  • npm run typecheck

Summary by cubic

Fail fast when the review harness exits non-zero or produces no review, and post visible failure notices to GitHub and Slack so bad runs don’t look successful.

  • Bug Fixes
    • Detect non-zero harness exitCode and empty review output and treat them as hard failures.
    • Add failReviewRun() to log the error, comment on the PR, notify Slack via SLACK_CHANNEL, and throw to stop the run.