Skip to main content

Module cleanup

Module cleanup 

Source
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§

CleanupArgs
Arguments for the gf pr cleanup command.
CleanupPlan
The set of PRs a batch cleanup would act on, computed before any deletion happens.
CleanupResult
Result of cleaning up a single PR.
CleanupService
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 --merged is allowed to clean up.