summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/config/stage_type.rb
blob: 060efb7d45ca931b52e6b630bb443f1d294a7139 (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
    module Config
      class StageType < BaseObject
        graphql_name 'CiConfigStage'

        field :name, GraphQL::STRING_TYPE, null: true,
              description: 'Name of the stage.'
        field :groups, Types::Ci::Config::GroupType.connection_type, null: true,
              description: 'Groups of jobs for the stage.'
      end
    end
  end
end