debian-mirror-gitlab/app/graphql/types/ci/recent_failures_type.rb
2021-10-27 15:23:28 +05:30

20 lines
628 B
Ruby

# 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::Types::Int, null: true,
description: 'Number of times the test case has failed in the past 14 days.'
field :base_branch, GraphQL::Types::String, null: true,
description: 'Name of the base branch of the project.'
end
# rubocop: enable Graphql/AuthorizeTypes
end
end