Skip to content

Commit 0d5da9f

Browse files
committed
feat: pass check self
1 parent fb68c1c commit 0d5da9f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/services/github_checks_verifier.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ class GithubChecksVerifier < ApplicationService
1919

2020
def call
2121
wait_for_checks
22-
rescue CheckNeverRunError => e
23-
puts e.message
24-
exit(true)
25-
rescue CheckConclusionNotAllowedError => e
22+
rescue CheckNeverRunError, CheckConclusionNotAllowedError => e
2623
puts e.message
2724
exit(false)
2825
end
@@ -65,7 +62,7 @@ def apply_regexp_filter(checks)
6562
end
6663

6764
def all_checks_complete(checks)
68-
checks.all? { |check| check.status == "completed" }
65+
checks.count == 1 || checks.any? { |check| check.status == "completed" }
6966
end
7067

7168
def filters_present?

0 commit comments

Comments
 (0)