fix: count cancelled github checks as failed (#4077)
This commit is contained in:
@@ -36,7 +36,10 @@ function deriveChecksStatus(
|
||||
return prChecksStatus
|
||||
}
|
||||
const hasFailure = checks.some(
|
||||
(check) => check.conclusion === 'failure' || check.conclusion === 'timed_out'
|
||||
(check) =>
|
||||
check.conclusion === 'failure' ||
|
||||
check.conclusion === 'timed_out' ||
|
||||
check.conclusion === 'cancelled'
|
||||
)
|
||||
if (hasFailure) {
|
||||
return 'failure'
|
||||
|
||||
Reference in New Issue
Block a user