ref:main

anvil branch — create / delete / protect / unprotect (needs server endpoints) #15

open Opened by cole.christensen@gmail.com

Links

No links yet.

Problem

`anvil branch` only has `list`. The server has full branch protection support (used by REQ-PR-022) but it’s web-UI-only — no way to manage from CLI.

Proposal

``` anvil branch view # show ahead/behind, last commit, protections anvil branch create [–from ] anvil branch delete [–force] anvil branch protect [–no-force-push] [–required-reviews N] … anvil branch unprotect anvil branch protections # list active protections ```

Acceptance criteria

  • Server: API endpoints for branch CRUD + branch_protection CRUD (separate ticket on `fangorn/anvil`).
  • CLI: subcommands above with tests.

Status

Blocked on server endpoints — file separately on `fangorn/anvil`.

Origin

CLI gap audit — branch protections exist server-side but have no CLI surface.