From 7b280a2a0a3090ad6726fe467d2c52d864a78fb9 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 4 Jun 2024 08:25:22 +0100 Subject: [PATCH] fix: github: as soon as any check fails, ignore any pending --- crates/forge-github/src/commit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/forge-github/src/commit.rs b/crates/forge-github/src/commit.rs index 433a3802..b75998ce 100644 --- a/crates/forge-github/src/commit.rs +++ b/crates/forge-github/src/commit.rs @@ -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(|| {