summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/config/stage_type.rb
blob: 20618bc41f81774e67295e621e1c31aab0030c2a (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], null: true,
              description: 'Groups of jobs for the stage'
      end
    end
  end
end