fix(ci): expose automated review report in CI logs

Currently, if the automated PR review script encounters failures (lint/test errors), it exits with code 1, but the failure details are only visible in the posted PR comment. In CI environments where the comment might not be immediately accessible or if posting fails, the logs are unhelpful.

This change unconditionally prints the generated review report (including failure details) to `stdout` at the end of the script execution. This ensures that failure reasons are always visible in the CI logs.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-27 17:51:23 +00:00
1 parent ef7ae13756
commit 0dddcb5e42
1 file changed
+6 -5
+6 -5
View File
@@ -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);
}