2018-09-11 15:08:34 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-06-26 12:31:05 -04:00
|
|
|
module Resolvers
|
|
|
|
class MergeRequestPipelinesResolver < BaseResolver
|
|
|
|
include ::ResolvesPipelines
|
|
|
|
|
|
|
|
alias_method :merge_request, :object
|
|
|
|
|
|
|
|
def resolve(**args)
|
2020-09-11 20:08:44 -04:00
|
|
|
return unless project
|
|
|
|
|
2018-06-26 12:31:05 -04:00
|
|
|
resolve_pipelines(project, args)
|
|
|
|
.merge(merge_request.all_pipelines)
|
|
|
|
end
|
|
|
|
|
|
|
|
def project
|
|
|
|
merge_request.source_project
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|