debian-mirror-gitlab/app/services/ci/pipeline_bridge_status_service.rb
2020-03-09 13:42:32 +05:30

13 lines
342 B
Ruby

# frozen_string_literal: true
module Ci
class PipelineBridgeStatusService < ::BaseService
def execute(pipeline)
return unless pipeline.bridge_triggered?
pipeline.source_bridge.inherit_status_from_downstream!(pipeline)
end
end
end
Ci::PipelineBridgeStatusService.prepend_if_ee('EE::Ci::PipelineBridgeStatusService')