Documentation
¶
Index ¶
Constants ¶
View Source
const TaskSchemaVersion = 2
TaskSchemaVersion is the task schema version that indicates the git redesign migration has been applied (best-effort) and can be skipped on subsequent runs.
v0.1.1 tasks commonly have schema=1 (schema1 history.jsonl). This migration upgrades them to schema=2 by backfilling missing git redesign fields.
Variables ¶
This section is empty.
Functions ¶
func Ensure ¶
Ensure performs a best-effort, idempotent migration to support the git redesign: - Backfills missing base_commit in the most recent task.opened event. - Backfills frozen change stats in task.merged / task.closed events when missing.
It is safe to call multiple times; if tasks are already migrated it becomes a no-op.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.