Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/github/build/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@
end

def stage_name(stage_config)
return stage_config.github_check_run_name if @check_suite.pull_request.plans.count == 1
return stage_config.github_check_run_name if @check_suite.pull_request.plans.count == 1 or @name.blank?

Check warning on line 184 in lib/github/build/action.rb

View workflow job for this annotation

GitHub Actions / Rubocop

[rubocop] reported by reviewdog 🐶 Use `one?` instead. (https://rubystyle.guide#collection-querying) Raw Output: lib/github/build/action.rb:184:86: C: Style/CollectionQuerying: Use `one?` instead. (https://rubystyle.guide#collection-querying)
return stage_config.github_check_run_name unless GitHubApp::Configuration.instance.multi_plan?

"#{stage_config.github_check_run_name} - #{@name}"
end
Expand Down
4 changes: 4 additions & 0 deletions lib/helpers/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ def debug?
config.key? 'debug' and config['debug']
end

def multi_plan?
config.key? 'multi_plan?' and config['multi_plan?']
end

def ci_url
return @config['ci']['url'] if @config.key?('ci') && @config['ci'].key?('url')

Expand Down