summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/config/config_type.rb
blob: 29093c6d3c91a36e7e052c069cab3c7a3fdd491a (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 config 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