summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/config/group_type.rb
blob: 8b0db2934a4fac13d7a2b6a8bb423b9f18fc5869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    module Config
      class GroupType < BaseObject
        graphql_name 'CiConfigGroup'

        field :name, GraphQL::STRING_TYPE, null: true,
              description: 'Name of the job group'
        field :jobs, [Types::Ci::Config::JobType], null: true,
              description: 'Jobs in group'
        field :size, GraphQL::INT_TYPE, null: true,
              description: 'Size of the job group'
      end
    end
  end
end