blob: 472733a6bc5ba1d752f1b97e6161dd1293eb4540 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
module Types
module BranchProtections
class BaseAccessLevelType < Types::BaseObject
authorize :read_protected_branch
field :access_level,
type: GraphQL::Types::Int,
null: false,
description: 'GitLab::Access level.'
field :access_level_description,
type: GraphQL::Types::String,
null: false,
description: 'Human readable representation for this access level.',
hash_key: 'humanize'
end
end
end
Types::BranchProtections::BaseAccessLevelType.prepend_mod
|