summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/config/stage_type.rb
blob: 2008c553629a544f97582f981bd3d738d10013da (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