debian-mirror-gitlab/app/graphql/resolvers/merge_request_pipelines_resolver.rb
2020-11-24 15:15:51 +05:30

20 lines
390 B
Ruby

# frozen_string_literal: true
module Resolvers
class MergeRequestPipelinesResolver < BaseResolver
include ::ResolvesPipelines
alias_method :merge_request, :object
def resolve(**args)
return unless project
resolve_pipelines(project, args)
.merge(merge_request.all_pipelines)
end
def project
merge_request.source_project
end
end
end