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

This commit is contained in:
Shinya Maeda 2018-10-04 16:40:43 +09:00
parent f84db3cc91
commit 545d5be0b3
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ module Ci
transition any - [:manual] => :manual
end
event :schedule do
event :delay do
transition any - [:scheduled] => :scheduled
end
@ -549,7 +549,7 @@ module Ci
when 'canceled' then cancel
when 'skipped' then skip
when 'manual' then block
when 'scheduled' then schedule
when 'scheduled' then delay
else
raise HasStatus::UnknownStatusError,
"Unknown status `#{latest_builds_status}`"