Expand description
PR cleanup domain types and service.
Provides argument and result types for the gf pr cleanup command,
plus the CleanupService that coordinates branch and worktree cleanup.
Structs§
- Cleanup
Args - Arguments for the
gf pr cleanupcommand. - Cleanup
Plan - The set of PRs a batch cleanup would act on, computed before any deletion happens.
- Cleanup
Result - Result of cleaning up a single PR.
- Cleanup
Service - Service for coordinating PR cleanup operations.
Functions§
- check_
safety - Perform safety checks before cleaning up a PR.
- is_
protected_ branch - Check if a branch name matches common protected branch patterns.
- select_
merge_ candidates - Select the PRs that
--mergedis allowed to clean up.