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

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

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    class RecentFailuresType < BaseObject
      graphql_name 'RecentFailures'
      description 'Recent failure history of a test case.'

      connection_type_class(Types::CountableConnectionType)

      field :count, GraphQL::INT_TYPE, null: true,
        description: 'Number of times the test case has failed in the past 14 days.'

      field :base_branch, GraphQL::STRING_TYPE, null: true,
        description: 'Name of the base branch of the project.'
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end