Skip to content

Commit

Permalink
Improve verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasalbarello committed Aug 21, 2021
1 parent 2d5f7c5 commit 5953ba2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/services/github_checks_verifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 5953ba2

Please sign in to comment.