summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/manual_variable_type.rb
blob: d6f59c1d2498f6858d5a9d7a668be331f7209ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    class ManualVariableType < BaseObject
      graphql_name 'CiManualVariable'
      description 'CI/CD variables given to a manual job.'

      implements(VariableInterface)

      field :environment_scope, GraphQL::Types::String,
        null: true,
        deprecated: {
          reason: 'No longer used, only available for GroupVariableType and ProjectVariableType',
          milestone: '15.3'
        },
        description: 'Scope defining the environments that can use the variable.'

      def environment_scope
        nil
      end
    end
  end
end