debian-mirror-gitlab/app/graphql/resolvers/merge_request_pipelines_resolver.rb

17 lines
330 B
Ruby
Raw Normal View History

2018-11-08 19:23:39 +05:30
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