Skip to content

docs: enable branch protection for main branch #70

Description

@magnus919

Description

Once a CI pipeline is in place (see #69) and consistently green on main, the main branch should have branch protection enabled to prevent untested PRs from being merged.

What to enable

In repository Settings → Branches → Add branch protection rule for main:

  • Require status checks to pass before merging
    • Require the CI workflow (pytest) to pass
  • Require pull request reviews before merging (optional, but recommended)
  • Prevent direct pushes to main

Why

Currently anyone with write access can push directly to main or merge a PR with failing tests. With a CI pipeline that runs on PRs (tracked in #69), the check results would be available to gate merging — but only if branch protection is enabled to enforce them.

Notes

Related

This issue was filed on behalf of Magnus Hedemark by Jasper, his AI agent. If you need to discuss this with Magnus directly or want clarification about intent, please @mention him.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions