feat: discover merged cleanup worktree aliases

This commit is contained in:
2026-07-08 23:08:38 -04:00
parent f6b2adac4d
commit 0a202970fd
3 changed files with 385 additions and 67 deletions
+4 -1
View File
@@ -4744,6 +4744,7 @@ def gitea_reconcile_merged_cleanups(
remote_branch_exists=remote_branch_exists,
head_on_master=head_on_master,
delete_capability_allowed=delete_capability_allowed,
target_ref=master_ref,
)
if dry_run:
@@ -4783,7 +4784,9 @@ def gitea_reconcile_merged_cleanups(
if local_assessment.get("safe_to_remove_worktree"):
result = merged_cleanup_reconcile.remove_local_worktree(
PROJECT_ROOT, head_branch
PROJECT_ROOT,
head_branch,
worktree_path=local_assessment.get("worktree_path"),
)
actions.append({"action": "remove_local_worktree", **result})