debian-mirror-gitlab/app/graphql/resolvers/merge_request_resolver.rb
2021-01-30 21:13:34 +05:30

20 lines
471 B
Ruby

# frozen_string_literal: true
module Resolvers
class MergeRequestResolver < BaseResolver.single
include ResolvesMergeRequests
alias_method :project, :synchronized_object
type ::Types::MergeRequestType, null: true
argument :iid, GraphQL::STRING_TYPE,
required: true,
as: :iids,
description: 'IID of the merge request, for example `1`'
def no_results_possible?(args)
project.nil?
end
end
end