blob: 80c8a791053db09f6893186617e892fcbb87edcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# frozen_string_literal: true
module API
module Entities
class ProtectedBranch < Grape::Entity
expose :id
expose :name
expose :push_access_levels, using: Entities::ProtectedRefAccess
expose :merge_access_levels, using: Entities::ProtectedRefAccess
end
end
end
API::Entities::ProtectedBranch.prepend_if_ee('EE::API::Entities::ProtectedBranch')
|