Skip to content
Snippets Groups Projects
Commit 7259ee85 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Add a guard clause to avoid creating empty stages

parent db3d0319
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -19,6 +19,9 @@ module Gitlab
pipeline.stage_seeds.each do |seed|
seed.user = current_user
 
# TODO, this needs specs, no test coverage
next unless seed.included?
pipeline.stages << seed.to_resource
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