mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
fix(ci): prevent automated-pr-review from failing the workflow
The `automated-pr-review` script was throwing an error when lint or test failures were found, causing the GitHub Action job to fail. However, the purpose of this script is to provide feedback via a PR comment, not to block the pipeline (other jobs handle blocking). This change updates the script to log the failure but exit successfully (0), ensuring the review comment is always delivered. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
b993acc09c
commit
4f193e28a4
3 files changed
+4
-2
No files matched your search
@@ -247,7 +247,9 @@ async function reviewPR(prNumber, baseRef) {
|
||||
console.log('---------------------------------------------------');
|
||||
|
||||
if (hasFailures) {
|
||||
throw new Error('Lint or Test failures detected.');
|
||||
console.log('Lint or Test failures detected. Reported to PR.');
|
||||
// Do not throw error here, as we want the workflow to "pass" so that the comment persists
|
||||
// and the developer can see the feedback. The actual build job (separate) will fail the PR checks.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user