From 5953ba23e0f81ecc5a6b93ff7ffd4963857aa79d Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Sat, 21 Aug 2021 22:35:29 +0200 Subject: [PATCH] Improve verbosity --- app/services/github_checks_verifier.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/services/github_checks_verifier.rb b/app/services/github_checks_verifier.rb index 3cea04f..10ba0dc 100644 --- a/app/services/github_checks_verifier.rb +++ b/app/services/github_checks_verifier.rb @@ -39,14 +39,10 @@ def log_checks(checks, msg) statuses = checks.map(&:status).uniq statuses.each do |status| print "Checks #{status}: " - puts checks.select { |check| check.status == status }.map { |check| log_check(check) }.join(", ") + puts checks.select { |check| check.status == status }.map(&:name).join(", ") end end - def log_check(check) - "Name: #{check.name}, Status: #{check.status}" - end - def apply_filters(checks) checks.reject! { |check| check.name == workflow_name } checks.select! { |check| check.name == check_name } if check_name.present?