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: e313b880e0d51189ae542736dde71c386ea85999 (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