fabro/lib/crates/fabro-github
Bryan Helmkamp 16184a6f96
refactor(github): drop merge_method.as_str() shim in PUT /pulls/:n/merge body
MergeMethod derives serde(rename_all = "snake_case"), so json!({
"merge_method": method }) emits the same `"squash"` / `"merge"` /
`"rebase"` strings as the as_str() round-trip. Inlining the typed value
removes the only remaining manual string conversion in the merge path.

Verified: workspace fmt clean, clippy --all-targets -D warnings clean,
cargo nextest run --workspace 4581 passed (fabro-github merge_pr unit
tests still pass — they assert against status codes not payload bytes,
but the twin-mode integration test create_merge_and_verify_state
exercises the on-the-wire JSON shape).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 09:23:18 -04:00
..
src refactor(github): drop merge_method.as_str() shim in PUT /pulls/:n/merge body 2026-04-24 09:23:18 -04:00
tests refactor(github): take GitHubContext by reference in public API 2026-04-24 09:15:25 -04:00
Cargo.toml refactor(github): replace stringly-typed PR errors with typed enum 2026-04-23 22:31:23 -04:00