Commit 545d5be0 authored by Shinya Maeda's avatar Shinya Maeda

Rename event :schedule to event :delay in Ci::Pipeline to avoid conflicts with enum source

parent f84db3cc
...@@ -109,7 +109,7 @@ module Ci ...@@ -109,7 +109,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
...@@ -549,7 +549,7 @@ module Ci ...@@ -549,7 +549,7 @@ module Ci
when 'canceled' then cancel when 'canceled' then cancel
when 'skipped' then skip when 'skipped' then skip
when 'manual' then block when 'manual' then block
when 'scheduled' then schedule when 'scheduled' then delay
else else
raise HasStatus::UnknownStatusError, raise HasStatus::UnknownStatusError,
"Unknown status `#{latest_builds_status}`" "Unknown status `#{latest_builds_status}`"
......
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