Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_variable_connection_type.rb « ci « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c3cdc425f10263d9d43f759f2ea1ceb7119f1509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    class ProjectVariableConnectionType < GraphQL::Types::Relay::BaseConnection
      field :limit, GraphQL::Types::Int,
        null: false,
        description: 'Maximum amount of project CI/CD variables.'

      def limit
        ::Plan.default.actual_limits.project_ci_variables
      end
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end