feat(pr): add --base, --draft, --ready to `pr edit` #30
merged
cole.christensen@gmail.com wants to merge
feat/315-pr-edit-fully-featured
into main
No CI
Summary
CLI half of fangorn/anvil#315. anvil pr edit could only change title/body; this adds the remaining editable PR metadata.
Changes
--base <branch>— repoint the base branch (sendsbase_branch).--draft/--ready— toggleis_draft(mutually exclusive via clapconflicts_with).- Updated the empty-payload hint and the subcommand doc string.
- On a base change the success output echoes the new base.
Requires the server change in fangorn/anvil#179 (PR update endpoint now accepts base_branch/is_draft).
Tests
Added parse tests: title+body, base repoint, --draft, --ready, and that --draft --ready together is rejected. cargo test commands::pr: 9 passed. cargo fmt --check and cargo clippy --all-targets -- -D warnings clean.
Refs fangorn/anvil#315
Created Jun 06, 2026 at 23:18 UTC
| Merged Jun 07, 2026 at 00:40 UTC
by
cole.christensen@gmail.com