in lib/release_tools/services/auto_merge_service.rb [44:68]
def wait_for_mr_pipeline_to_start
logger.info('Waiting for a merge request pipeline')
return if SharedStatus.dry_run?
Retriable.with_context(:pipeline_created) do
pipeline = latest_pipeline
raise PipelineNotReadyError unless pipeline
logger.info('Merge request pipeline', pipeline: pipeline.web_url, status: pipeline.status.to_s)
raise PipelineNotReadyError unless pipeline_pending?(pipeline) || pipeline_completed?(pipeline)
pipeline
end
end