name variable from github config

This commit is contained in:
Ulf Gebhardt 2021-04-14 11:47:19 +02:00
parent 0bc53bbf5c
commit f6604dcfa9
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
class GithubCheckRunService
CHECK_NAME = 'Coverage'
CHECK_NAME = defined? @github_data[:name] ? @github_data[:name] : 'Coverage'
def initialize(report, github_data, report_adapter)
@report = report