diff --git a/scripts/automated-pr-review.mjs b/scripts/automated-pr-review.mjs index e1534747..7e11be0c 100644 --- a/scripts/automated-pr-review.mjs +++ b/scripts/automated-pr-review.mjs @@ -235,13 +235,14 @@ async function main() { console.error('Error posting comment:', e); } - } else { - console.log('Not in CI or missing tokens. Printing report to stdout:'); - console.log('---------------------------------------------------'); - console.log(commentBody); - console.log('---------------------------------------------------'); } + // Always print the report to stdout so it's visible in logs (especially if posting fails or for debugging) + console.log('---------------------------------------------------'); + console.log('PR Review Report:'); + console.log(commentBody); + console.log('---------------------------------------------------'); + if (hasFailures) { process.exit(1); }