Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh
7 linesCodeBlameRaw
1INSERT OR IGNORE INTO purge_jobs (subject_id, kind, target, payload, created_at, retry_at)
2SELECT ?1, ?2, ?3, ?4, ?5, ?5
3WHERE (?2 = 'user' AND EXISTS (
4 SELECT 1 FROM users WHERE id = ?1 AND deleted_at IS NOT NULL AND purge_after IS NOT NULL
5)) OR (?2 = 'workspace' AND EXISTS (
6 SELECT 1 FROM workspaces WHERE id = ?1 AND deleted_at IS NOT NULL AND purge_after IS NOT NULL
7))