Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-27 18:08:56 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-27 18:08:56 +0300
commit524a21e75209d2501b23b648daf753e3a4bebe56 (patch)
treeaeed4e65e44cee9e0b23298da15828655d23dc94 /app/models/commit_status.rb
parentb59833305bfaf6b0b3347ad2b626c90c3b3fd5fc (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r--app/models/commit_status.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index 64e585bae14..333a176b8f3 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -108,6 +108,8 @@ class CommitStatus < Ci::ApplicationRecord
# These are pages deployments and external statuses.
#
before_create unless: :importing? do
+ next if Feature.enabled?(:ci_remove_ensure_stage_service, project)
+
# rubocop: disable CodeReuse/ServiceClass
Ci::EnsureStageService.new(project, user).execute(self) do |stage|
self.run_after_commit { StageUpdateWorker.perform_async(stage.id) }