{% extends "base.html" %} {% set staff_repo_subnav_active = "protections" %} {% block content %}
{% with staff_nav_active="repos" %} {% include "partials/staff_sidebar.html" %} {% endwith %}
{% with breadcrumbs=[ {"name": "Staff", "href": "/staff"}, {"name": "Repos", "href": "/staff/repos"}, {"name": repo.name, "href": "/staff/repos/" ~ repo.uuid}, {"name": "Protections"} ] %} {% include "partials/breadcrumbs.html" %} {% endwith %}
New Protection
{% include "staff/repo_subnav.html" %} {% include "partials/flash.html" %}
Branch Protections
{% if protections | length == 0 %}

No branch protections configured.

{% else %}
{% for bp in protections %} {% endfor %}
Pattern Require Pull Single Commit Fast-Forward Owner Merge Owner Bypass Approvals Actions
{{ bp.branch_pattern }} {% if bp.require_pull %}Yes{% else %}No{% endif %} {% if bp.require_pull_single_commit %}Yes{% else %}No{% endif %} {% if bp.require_fastforward %}Yes{% else %}No{% endif %} {% if bp.require_owner_merge %}Yes{% else %}No{% endif %} {% if bp.allow_owner_bypass %}Yes{% else %}No{% endif %} {{ bp.require_num_approvals }}
Edit
{% endif %}
{% with page=page, query=query, per_page_id="protections-per-page", per_page_form="protections-filter-form" %} {% include "partials/paging_footer.html" %} {% endwith %}
{% with modal_id="confirm-delete-protection", modal_title="Delete protection", modal_body='Delete ?', modal_confirm_text="Delete protection", modal_desc="This branch protection rule will be removed." %} {% include "partials/confirm_modal.html" %} {% endwith %} {% endblock %} {% block scripts %} {% endblock %}