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

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

module Types
  class MilestoneStatsType < BaseObject
    graphql_name 'MilestoneStats'
    description 'Contains statistics about a milestone'

    authorize :read_milestone

    field :total_issues_count, GraphQL::INT_TYPE, null: true,
          description: 'Total number of issues associated with the milestone'

    field :closed_issues_count, GraphQL::INT_TYPE, null: true,
          description: 'Number of closed issues associated with the milestone'
  end
end