Commit e4ed981f authored by Shinya Maeda's avatar Shinya Maeda

Make Ci::Stage status transition event consistent with Ci::Pipeline

parent e84230eb
...@@ -66,7 +66,7 @@ module Ci ...@@ -66,7 +66,7 @@ module Ci
transition any - [:manual] => :manual transition any - [:manual] => :manual
end end
event :schedule do event :delay do
transition any - [:scheduled] => :scheduled transition any - [:scheduled] => :scheduled
end end
end end
...@@ -81,7 +81,7 @@ module Ci ...@@ -81,7 +81,7 @@ module Ci
when 'failed' then drop when 'failed' then drop
when 'canceled' then cancel when 'canceled' then cancel
when 'manual' then block when 'manual' then block
when 'scheduled' then schedule when 'scheduled' then delay
when 'skipped', nil then skip when 'skipped', nil then skip
else else
raise HasStatus::UnknownStatusError, raise HasStatus::UnknownStatusError,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment