feat(taskactions): archive reaps the task's worktree; cleanup test models a completed run
A worktree terminal cleanup keeps (uncaptured or unreadable work) now has a reap path: archiving calls Daemon.RemoveWorktree for the owning identity's trees, and the keep logs name archive as the way out. The no-change cleanup test reports completed through one direct transition instead of reaching merged via a faked pr_open hop.
This commit is contained in:
6 files changed
+73
-29
No files matched your search
@@ -17,16 +17,18 @@ func NewService(
|
||||
cancel func(int64) bool,
|
||||
closeIssue func(context.Context, string, string, int, string) error,
|
||||
removeLogs func(int64) error,
|
||||
removeWorktree func(*taskactions.Task) error,
|
||||
publish func(events.Event),
|
||||
warn func(string, ...any),
|
||||
) taskactions.Service {
|
||||
return taskactions.Service{
|
||||
Store: store,
|
||||
MaxRetries: maxRetries,
|
||||
CancelTask: cancel,
|
||||
CloseIssue: closeIssue,
|
||||
RemoveLogs: removeLogs,
|
||||
Publish: publish,
|
||||
Warn: warn,
|
||||
Store: store,
|
||||
MaxRetries: maxRetries,
|
||||
CancelTask: cancel,
|
||||
CloseIssue: closeIssue,
|
||||
RemoveLogs: removeLogs,
|
||||
RemoveWorktree: removeWorktree,
|
||||
Publish: publish,
|
||||
Warn: warn,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user