mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Two cleanups: 1. Threaded GitHubContext through the remaining fabro-github functions that pair credentials with the API base URL: branch_exists, resolve_clone_credentials, resolve_authenticated_url. Each loses its trailing `base_url: &str` and replaces `creds: &GitHubCredentials` with `ctx: GitHubContext<'_>`. is_app_public was skipped — it doesn't take credentials. Updated production callers in fabro-sandbox/daytona and fabro-workflow/sandbox_git, plus integration and unit tests. 2. Added OpenPullRequestRequest::from_run_state on the workflow struct. Bundles the validated unpacked-from-RunState pieces into a draft PR request with the server's defaults (`draft = true`, `auto_merge = None`). Server's create_run_pull_request handler now calls the constructor instead of inlining a 12-field struct literal — the handler reads as a sequence of validations followed by one named request build, not as plumbing. Verified: workspace fmt clean, clippy --all-targets -D warnings clean, cargo nextest run --workspace 4587 passed, 182 skipped. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| crates | ||
| packages/fabro-api-client | ||