2019-05-12 21:10:46 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
class ProjectStatisticsType < BaseObject
|
|
|
|
graphql_name 'ProjectStatistics'
|
|
|
|
|
|
|
|
field :commit_count, GraphQL::INT_TYPE, null: false
|
|
|
|
|
|
|
|
field :storage_size, GraphQL::INT_TYPE, null: false
|
|
|
|
field :repository_size, GraphQL::INT_TYPE, null: false
|
|
|
|
field :lfs_objects_size, GraphQL::INT_TYPE, null: false
|
|
|
|
field :build_artifacts_size, GraphQL::INT_TYPE, null: false
|
|
|
|
field :packages_size, GraphQL::INT_TYPE, null: false
|
2019-06-04 12:11:41 +00:00
|
|
|
field :wiki_size, GraphQL::INT_TYPE, null: true
|
2019-05-12 21:10:46 +00:00
|
|
|
end
|
|
|
|
end
|