{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings branches")}}

{{ctx.Locale.Tr "repo.settings.branch_protection" (.Rule.RuleName|Escape) | Str2html}}

{{ctx.Locale.Tr "repo.settings.protect_patterns"}}

{{ctx.Locale.Tr "repo.settings.protect_branch_name_pattern_desc" | Safe}}

{{ctx.Locale.Tr "repo.settings.protect_protected_file_patterns_desc" | Safe}}

{{ctx.Locale.Tr "repo.settings.protect_unprotected_file_patterns_desc" | Safe}}

{{.CsrfTokenHtml}}
{{ctx.Locale.Tr "repo.settings.event_push"}}

{{ctx.Locale.Tr "repo.settings.protect_disable_push_desc"}}

{{ctx.Locale.Tr "repo.settings.protect_enable_push_desc"}}

{{ctx.Locale.Tr "repo.settings.protect_whitelist_committers_desc"}}

{{if .Owner.IsOrganization}}
{{end}}

{{ctx.Locale.Tr "repo.settings.require_signed_commits_desc"}}

{{ctx.Locale.Tr "repo.settings.event_pull_request_approvals"}}

{{ctx.Locale.Tr "repo.settings.protect_required_approvals_desc"}}

{{ctx.Locale.Tr "repo.settings.protect_approvals_whitelist_enabled_desc"}}

{{if .Owner.IsOrganization}}
{{end}}

{{ctx.Locale.Tr "repo.settings.dismiss_stale_approvals_desc"}}

{{ctx.Locale.Tr "repo.settings.ignore_stale_approvals_desc"}}

{{ctx.Locale.Tr "repo.settings.protect_check_status_contexts_desc"}}

{{ctx.Locale.Tr "repo.settings.protect_status_check_patterns_desc"}}

{{range $.recent_status_checks}} {{else}} {{end}}
{{ctx.Locale.Tr "repo.settings.protect_check_status_contexts_list"}}
{{.}} {{ctx.Locale.Tr "repo.settings.protect_status_check_matched"}}
-
{{ctx.Locale.Tr "repo.settings.event_pull_request_merge"}}

{{ctx.Locale.Tr "repo.settings.protect_enable_merge_desc"}}

{{ctx.Locale.Tr "repo.settings.protect_merge_whitelist_committers_desc"}}

{{if .Owner.IsOrganization}}
{{end}}

{{ctx.Locale.Tr "repo.settings.block_rejected_reviews_desc"}}

{{ctx.Locale.Tr "repo.settings.block_on_official_review_requests_desc"}}

{{ctx.Locale.Tr "repo.settings.block_outdated_branch_desc"}}

{{template "repo/settings/layout_footer" .}}