debian-mirror-gitlab/app/graphql/resolvers/ci/project_runners_resolver.rb
2023-03-04 22:38:38 +05:30

15 lines
323 B
Ruby

# frozen_string_literal: true
module Resolvers
module Ci
class ProjectRunnersResolver < RunnersResolver
type Types::Ci::RunnerType.connection_type, null: true
def parent_param
raise 'Expected project missing' unless parent.is_a?(Project)
{ project: parent }
end
end
end
end