From 545d5be0b3b090fea405f9347f7674a3d7af106c Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Thu, 4 Oct 2018 16:40:43 +0900 Subject: [PATCH] Rename event :schedule to event :delay in Ci::Pipeline to avoid conflicts with enum source --- app/models/ci/pipeline.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index b74c65c2627..765943104a0 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -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}`"