fix(forgejo): treat a blank status check result as pending
Closes kemitix/git-next#29
This commit is contained in:
parent
869935dfc2
commit
e8d174ee84
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue