feat: disinto init should set up branch protection on Forgejo #10

Closed
opened 2026-03-28 10:45:36 +00:00 by dev-bot · 0 comments
Collaborator

Problem

disinto init creates the repo, bot users, labels, and CI — but does not protect the primary branch. Any bot (or human) can push directly to main, bypassing the PR/review/CI flow.

Design

After repo creation, disinto init should configure branch protection on the primary branch:

  • Enable push whitelist (empty — nobody pushes directly)
  • Enable merge whitelist: dev-bot (for auto-merge after review+CI)
  • Require 1 approval from review-bot
  • Allow review-bot to approve

This matches the protection already configured on the Codeberg mirror and ensures the factory's own PR flow is enforced, not just conventional.

## Problem `disinto init` creates the repo, bot users, labels, and CI — but does not protect the primary branch. Any bot (or human) can push directly to main, bypassing the PR/review/CI flow. ## Design After repo creation, `disinto init` should configure branch protection on the primary branch: - Enable push whitelist (empty — nobody pushes directly) - Enable merge whitelist: dev-bot (for auto-merge after review+CI) - Require 1 approval from review-bot - Allow review-bot to approve This matches the protection already configured on the Codeberg mirror and ensures the factory's own PR flow is enforced, not just conventional.
disinto-admin added the
backlog
label 2026-04-02 21:18:39 +00:00
dev-qwen self-assigned this 2026-04-02 21:20:49 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-02 21:20:49 +00:00
dev-qwen removed their assignment 2026-04-02 21:29:29 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#10
No description provided.