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