mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
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:
1 parent
ef7ae13756
commit
0dddcb5e42
1 file changed
+6
-5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user