Skip to content
Snippets Groups Projects
Commit d013642b authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Rename create_builds_for_type to create_builds_for_stage in Commit model

parent bbfe0948
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -99,7 +99,7 @@ class Commit < ActiveRecord::Base
config_processor.stages.find { |stage| stages.include? stage }
end
 
def create_builds_for_type(stage)
def create_builds_for_stage(stage)
return if skip_ci?
return unless config_processor
 
Loading
Loading
@@ -124,7 +124,7 @@ class Commit < ActiveRecord::Base
stages = builds.group_by(&:stage)
 
config_processor.stages.any? do |stage|
!stages.include?(stage) && create_builds_for_type(stage).present?
!stages.include?(stage) && create_builds_for_stage(stage).present?
end
end
 
Loading
Loading
@@ -133,7 +133,7 @@ class Commit < ActiveRecord::Base
return unless config_processor
 
config_processor.stages.any? do |stage|
create_builds_for_type(stage).present?
create_builds_for_stage(stage).present?
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment