oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1ALTER TABLE chat_tasks ADD COLUMN ready_sha text;
2ALTER TABLE chat_tasks ADD COLUMN merge_eligible text;
3ALTER TABLE chat_tasks ADD COLUMN done_at datetime;
4UPDATE chat_tasks SET ready_sha = (SELECT s.candidate_sha FROM chat_steps s WHERE s.task_id = chat_tasks.id AND s.specialist = 'engineering' AND s.pushed = 1 ORDER BY s.idx DESC LIMIT 1) WHERE stage IN ('ready_to_merge', 'merging') OR (stage = 'in_review' AND moved_from IS NOT NULL AND moved_from <> '');
5UPDATE chat_tasks SET done_at = updated_at WHERE stage = 'done';
6