{% extends "base.html" %} {% block title %}Branch Protection — {{ project.name }} — Fossilrepo{% endblock %} {% block content %}

{{ project.name }}

{% include "fossil/_project_nav.html" %}

Branch Protection Rules

Protect branches from unreviewed changes and require CI checks to pass.

Add Rule
{% if rules %}
{% for rule in rules %}
{{ rule.branch_pattern }} {% if rule.restrict_push %} Push restricted {% endif %} {% if rule.require_status_checks %} CI required {% endif %}
{% if rule.require_status_checks and rule.required_contexts %} Required contexts: {{ rule.required_contexts|truncatewords:10 }} {% endif %} Created {{ rule.created_at|timesince }} ago
Edit
{% csrf_token %}
{% endfor %}
{% else %}

{% if search %}No rules matching "{{ search }}".{% else %}No branch protection rules configured.{% endif %}

{% if not search %} Add the first rule {% endif %}
{% endif %} {% include "includes/_pagination.html" %}

Branch protection rules are currently advisory. Push enforcement via Fossil hooks is not yet implemented.

{% endblock %}