summaryrefslogtreecommitdiff
path: root/lib/api/entities/protected_branch.rb
blob: e41d497c83632b0c735716c73fbf4342d94af465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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