feat(jobs/runners): worktree prune two-phase + workspace prune queries/repo methods

This commit is contained in:
2026-05-06 07:55:56 +08:00
parent 0111135e78
commit c50621eeca
8 changed files with 638 additions and 12 deletions
+4 -3
View File
@@ -83,9 +83,10 @@ type Worktree struct {
Path string
Status WorktreeStatus
ActiveHolder string // "user:<uid>" / "session:<sid>" / 空
AcquiredAt *time.Time
LastUsedAt time.Time
CreatedAt time.Time
AcquiredAt *time.Time
LastUsedAt time.Time
PruneWarningAt *time.Time
CreatedAt time.Time
}
// Credential 是 git_credentials 表的领域投影。Secret 仅在创建/更新时有值,