Skip to content

Commit

Permalink
fix: consider test as success if not required
Browse files Browse the repository at this point in the history
  • Loading branch information
loispostula committed Aug 19, 2024
1 parent 1cd0b66 commit 37f890f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-fslabscli"
version = "2.2.0"
version = "2.2.1"
edition = "2021"
authors = ["FSLABS DevOps Gods"]
repository = "https://github.com/ForesightMiningSoftwareCorporation/fslabsci"
Expand Down
2 changes: 1 addition & 1 deletion src/commands/summaries/run_types/checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl JobType<CheckRunOutput> for CheckJobType {
.filter(|(_, c)| c.is_some())
.all(|(_, c)| {
c.as_ref()
.is_some_and(|c| c.required && c.outcome.is_passing())
.is_some_and(|c| (c.required && c.outcome.is_passing()) || true)
})
}

Expand Down

0 comments on commit 37f890f

Please sign in to comment.