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

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

        field :errors, [GraphQL::STRING_TYPE], null: true,
              description: 'Linting errors.'
        field :merged_yaml, GraphQL::STRING_TYPE, null: true,
              description: 'Merged CI configuration YAML.'
        field :stages, Types::Ci::Config::StageType.connection_type, null: true,
              description: 'Stages of the pipeline.'
        field :status, Types::Ci::Config::StatusEnum, null: true,
              description: 'Status of linting, can be either valid or invalid.'
      end
    end
  end
end