forgejo-mcp/openspec/specs/branch-protection
Christoph Görn cd190edfd0
feat: ✨ add whitelist params to edit_branch_protection
Add push/merge/approvals whitelist params so an admin can allow a
specific user (e.g. a release bot) to push to an otherwise locked
branch:

- enable_push_whitelist / push_whitelist_usernames
- enable_merge_whitelist / merge_whitelist_usernames
- enable_approvals_whitelist / approvals_whitelist_usernames

Username lists are comma-separated and replace the existing list.
PATCH null-safety extends to them: an unpassed list serializes as null
(leave-unchanged), never [] (which would wipe an existing whitelist).
Covered by TestEditBranchProtectionFn_PushWhitelistRoundTrip.

Update the co-located branch-protection showboat demo and link it from
demos/README.md (new "Branch protection (governance)" section).
2026-06-02 17:40:34 +02:00
..
branch-protection.demo.md feat: ✨ add whitelist params to edit_branch_protection 2026-06-02 17:40:34 +02:00
spec.md docs: 📝 archive branch-protection-management + co-locate demo (uc6) 2026-06-02 16:37:06 +02:00