Class: MergeRequests::UpdateHeadPipelineWorker
- Inherits:
-
Object
- Object
- MergeRequests::UpdateHeadPipelineWorker
- Includes:
- Gitlab::EventStore::Subscriber
- Defined in:
- app/workers/merge_requests/update_head_pipeline_worker.rb
Instance Method Summary collapse
Methods included from Gitlab::EventStore::Subscriber
Instance Method Details
#handle_event(event) ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/workers/merge_requests/update_head_pipeline_worker.rb', line 14 def handle_event(event) Ci::Pipeline.find_by_id(event.data[:pipeline_id]).try do |pipeline| pipeline.all_merge_requests.opened.each do |merge_request| merge_request.update_head_pipeline end end end |