/** * SQL guard for `repos.open_issues_count` / `open_pulls_count` updates: the issue bound as the guard's parameter is * not hidden. Hiding an open issue already took it out of the counter, so later state changes must not move it. */ export const COUNTED = "NOT EXISTS (SELECT 1 FROM issues WHERE id = ? AND hidden_at IS NOT NULL)";