fabro/lib/crates/fabro-github
Bryan Helmkamp 12ca595f54
refactor(github): take GitHubContext by reference in public API
Public functions now take ctx: &GitHubContext<'_> instead of by-value
GitHubContext<'_>. Matches the surrounding &str / &GitHubCredentials
convention. The type stays Copy so internal call sites that pass `ctx`
through still work without explicit reborrows.

Touched: 8 fabro-github functions + matching _with_client variants,
plus call sites in fabro-server, fabro-workflow, fabro-sandbox, and
fabro-github's integration + unit tests. Pure mechanical change.

Verified: workspace fmt clean, clippy --all-targets -D warnings clean,
cargo nextest run --workspace 4581 passed, 182 skipped.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 09:15:25 -04:00
..
src refactor(github): take GitHubContext by reference in public API 2026-04-24 09:15:25 -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