2020-06-24 15:08:50 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
class MilestoneStatsType < BaseObject
|
|
|
|
graphql_name 'MilestoneStats'
|
|
|
|
description 'Contains statistics about a milestone'
|
|
|
|
|
|
|
|
authorize :read_milestone
|
|
|
|
|
2021-07-22 09:08:22 +00:00
|
|
|
field :total_issues_count, GraphQL::Types::Int, null: true,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Total number of issues associated with the milestone.'
|
2020-06-24 15:08:50 +00:00
|
|
|
|
2021-07-22 09:08:22 +00:00
|
|
|
field :closed_issues_count, GraphQL::Types::Int, null: true,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Number of closed issues associated with the milestone.'
|
2020-06-24 15:08:50 +00:00
|
|
|
end
|
|
|
|
end
|