fix: github: as soon as any check fails, ignore any pending

This commit is contained in:
Paul Campbell 2024-06-04 08:25:22 +01:00
parent 46e2871e17
commit 7b280a2a0a

View file

@ -51,8 +51,8 @@ pub async fn status(github: &github::Github, commit: &git::Commit) -> git::forge
.reduce(|l, r| match (l, r) {
(Status::Pass, Status::Pass) => Status::Pass,
(_, Status::Fail) => Status::Fail,
(_, Status::Pending) => Status::Pending,
(Status::Fail, _) => Status::Fail,
(_, Status::Pending) => Status::Pending,
(Status::Pending, _) => Status::Pending,
})
.unwrap_or_else(|| {