blob: 88c17d89620e4bb9c3a2f589780c5ee1addcfd5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
module Types
module Projects
# rubocop: disable Graphql/AuthorizeTypes
class ForkDetailsType < BaseObject
graphql_name 'ForkDetails'
description 'Details of the fork project compared to its upstream project.'
field :ahead, GraphQL::Types::Int,
null: true,
description: 'Number of commits ahead of upstream.'
field :behind, GraphQL::Types::Int,
null: true,
description: 'Number of commits behind upstream.'
end
# rubocop: enable Graphql/AuthorizeTypes
end
end
|