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

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

{{.locale.Tr "repo.settings.protect_patterns"}}

{{.locale.Tr "repo.settings.protect_protected_file_patterns_desc" | Safe}}

{{.locale.Tr "repo.settings.protect_unprotected_file_patterns_desc" | Safe}}

{{.CsrfTokenHtml}}
{{.locale.Tr "repo.settings.event_push"}}

{{.locale.Tr "repo.settings.protect_disable_push_desc"}}

{{.locale.Tr "repo.settings.protect_enable_push_desc"}}

{{.locale.Tr "repo.settings.protect_whitelist_committers_desc"}}

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

{{.locale.Tr "repo.settings.require_signed_commits_desc"}}

{{.locale.Tr "repo.settings.event_pull_request_approvals"}}

{{.locale.Tr "repo.settings.protect_required_approvals_desc"}}

{{.locale.Tr "repo.settings.protect_approvals_whitelist_enabled_desc"}}

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

{{.locale.Tr "repo.settings.dismiss_stale_approvals_desc"}}

{{.locale.Tr "repo.settings.protect_check_status_contexts_desc"}}

{{.locale.Tr "repo.settings.protect_status_check_patterns_desc"}}

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

{{.locale.Tr "repo.settings.protect_enable_merge_desc"}}

{{.locale.Tr "repo.settings.protect_merge_whitelist_committers_desc"}}

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

{{.locale.Tr "repo.settings.block_rejected_reviews_desc"}}

{{.locale.Tr "repo.settings.block_on_official_review_requests_desc"}}

{{.locale.Tr "repo.settings.block_outdated_branch_desc"}}

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