Rename event :schedule to event :delay in Ci::Pipeline to avoid conflicts with enum source
This commit is contained in:
parent
f84db3cc91
commit
545d5be0b3
|
@ -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}`"
|
||||
|
|
Loading…
Reference in New Issue