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

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

module Types
  # rubocop: disable Graphql/AuthorizeTypes
  # This is used in `IssueType` and `MergeRequestType` both of which have their
  # own authorization
  class TaskCompletionStatus < BaseObject
    graphql_name 'TaskCompletionStatus'
    description 'Completion status of tasks'

    field :count, GraphQL::Types::Int, null: false,
          description: 'Number of total tasks.'
    field :completed_count, GraphQL::Types::Int, null: false,
          description: 'Number of completed tasks.'
  end
  # rubocop: enable Graphql/AuthorizeTypes
end