summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/config/job_type.rb
blob: 59bcbd9ef49164120f859522c8fa54e187127367 (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 JobType < BaseObject
        graphql_name 'CiConfigJob'

        field :name, GraphQL::STRING_TYPE, null: true,
              description: 'Name of the job'
        field :group_name, GraphQL::STRING_TYPE, null: true,
              description: 'Name of the job group'
        field :stage, GraphQL::STRING_TYPE, null: true,
              description: 'Name of the job stage'
        field :needs, [Types::Ci::Config::NeedType], null: true,
              description: 'Builds that must complete before the jobs run'
      end
    end
  end
end