{{template "base/head" .}}
{{template "repo/header" .}} {{template "repo/settings/navbar" .}}
{{template "base/alert" .}}

{{.i18n.Tr "repo.settings.branch_protection" (.Branch.BranchName|Escape) | Str2html}}

{{.CsrfTokenHtml}}

{{.i18n.Tr "repo.settings.protect_this_branch_desc"}}

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

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

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

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

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

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

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

{{range $.branch_status_check_contexts}} {{end}}
{{.i18n.Tr "repo.settings.protect_check_status_contexts_list"}}
{{.}} {{if $.is_context_required}}{{if call $.is_context_required .}}
Required
{{end}}{{end}}

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

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

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

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

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

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

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

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

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

{{template "base/footer" .}}