Welcome to mirror list, hosted at ThFree Co, Russian Federation.

config_type.rb « config « ci « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: de355c8eacff25195388af082654093eb1205af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

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

        field :errors, [GraphQL::Types::String], null: true,
              description: 'Linting errors.'
        field :merged_yaml, GraphQL::Types::String, 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.'
        field :warnings, [GraphQL::Types::String], null: true,
              description: 'Linting warnings.'
      end
    end
  end
end