2018-12-05 23:21:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
module Resolvers
|
|
|
|
class MergeRequestPipelinesResolver < BaseResolver
|
|
|
|
include ::ResolvesPipelines
|
|
|
|
|
|
|
|
alias_method :merge_request, :object
|
|
|
|
|
|
|
|
def resolve(**args)
|
2020-11-24 15:15:51 +05:30
|
|
|
return unless project
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
resolve_pipelines(project, args)
|
|
|
|
.merge(merge_request.all_pipelines)
|
|
|
|
end
|
|
|
|
|
|
|
|
def project
|
|
|
|
merge_request.source_project
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|