Skip to content

ProtectedBranch

Traits

:create_branch_on_repository
:no_one_can_merge
:developers_can_merge
:maintainers_can_merge
:no_one_can_push
:developers_can_push
:maintainers_can_push
:user_can_merge
:group_can_merge
:user_can_push
:group_can_push
:developers_can_unprotect
:maintainers_can_unprotect
:user_can_unprotect
:group_can_unprotect

Attributes

name
project
default_push_level
default_merge_level
default_access_level
ee
authorize_user_to_push
authorize_user_to_merge
authorize_user_to_unprotect
authorize_group_to_push
authorize_group_to_merge
authorize_group_to_unprotect

Examples