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)
|
|
|
|
resolve_pipelines(project, args)
|
|
|
|
.merge(merge_request.all_pipelines)
|
|
|
|
end
|
|
|
|
|
|
|
|
def project
|
|
|
|
merge_request.source_project
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|