From e8d174ee846abe353d8859dfe0f822dbcab03c1b Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 12 Apr 2024 13:51:56 +0100 Subject: [PATCH] fix(forgejo): treat a blank status check result as pending Closes kemitix/git-next#29 --- src/server/forge/forgejo/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/forge/forgejo/mod.rs b/src/server/forge/forgejo/mod.rs index b79840ab..5347be52 100644 --- a/src/server/forge/forgejo/mod.rs +++ b/src/server/forge/forgejo/mod.rs @@ -133,6 +133,7 @@ pub async fn get_commit_status( CommitStatusState::Pending => Status::Pending, CommitStatusState::Failure => Status::Fail, CommitStatusState::Error => Status::Fail, + CommitStatusState::Blank => Status::Pending, }, None => { warn!("No status found for commit"); @@ -162,4 +163,6 @@ pub enum CommitStatusState { Failure, #[serde(rename = "error")] Error, + #[serde(rename = "")] + Blank, }