mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-06 08:18:58 +00:00
1.4 KiB
1.4 KiB
All changes are clean and focused. Here's a summary of what was implemented:
Changes Made
-
lib/crates/fabro-cli/src/args.rs— Added#[arg(short, long)] pub(crate) force: booltoPrCreateArgs, with help text explaining it bypasses the status check. -
lib/crates/fabro-cli/src/commands/pr/create.rs— Updated the status checkmatchto include a new armstatus if args.force =>that logs a warning and continues instead of bailing. -
lib/crates/fabro-cli/tests/it/cmd/support.rs— Addedsetup_failed_runhelper that creates a workspace with a workflow containing ashape=parallelogram, script="exit 1", goal_gate=truenode, runs it, and asserts the conclusion status is "fail". -
lib/crates/fabro-cli/tests/it/cmd/pr_create.rs— Added two integration tests:pr_create_failed_run_rejects_without_force— verifies failed runs are rejected with the expected error messagepr_create_failed_run_proceeds_with_force— verifies--forcebypasses the status gate and hits the next validation error ("Run has no run_branch")- Updated the
helpsnapshot to include the new-f, --forceflag
Verification
cargo clippy -p fabro-cli -- -D warnings— passes cleancargo nextest run -p fabro-cli -- pr_create— all 5 tests pass./target/debug/fabro pr create --help— confirms-f/--forceappears