Skip to content

Commit

Permalink
feat: neutral checks should not count as a failure
Browse files Browse the repository at this point in the history
Prevents `Check "foo" has the following status "completed" and conclusion "neutral"` from being a failure.
  • Loading branch information
ericnorris authored Jul 28, 2021
1 parent 1d03bce commit cc88c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StatusCheck/Checks.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function refresh(): PromiseInterface
$return = TRUE_;
}

if ($status->status() !== 'completed' || $status->conclusion() === 'success' || $status->conclusion() === 'skipped') {
if ($status->status() !== 'completed' || $status->conclusion() === 'success' || $status->conclusion() === 'skipped' || $status->conclusion() === 'neutral') {
continue;
}

Expand Down

0 comments on commit cc88c33

Please sign in to comment.