Documentation
¶
Overview ¶
Package plan parses the JSONL plan files consumed by `hew apply`: one entry per line, each describing an issue to create. Entries may carry a local id so other lines can reference them (parent, blocked-by) before issue numbers exist — the same way migrate resolves bead IDs. The entry model, local-id resolution and cycle rejection live in tracker, where the same typed entries are accepted from callers that build plans in code; this package is only the file format.
Index ¶
Constants ¶
const ( // ParentEdge is the sub-issue edge. ParentEdge = tracker.ParentEdge // BlockedByEdge is the dependency edge. BlockedByEdge = tracker.BlockedByEdge )
const TypeEpic = tracker.PlanTypeEpic
TypeEpic is the plan-only type marking a parent issue.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
Entry is one issue to create.
func Parse ¶
Parse reads and validates a JSONL plan. Blank lines are skipped; unknown fields are errors (a typoed "blockedby" silently dropping dependencies is exactly the failure mode a batch tool must not have). Validation is tracker.ValidatePlan's: every local reference must resolve, and dependency or parent cycles between entries are rejected.
The idea type's area reservation is the one rule Parse cannot apply: a plan written before `idea` was a type may carry it as an area on an entry a pre-upgrade checkpoint already created. tracker.ApplyPlan enforces the reservation on pending entries, which is every entry of a fresh plan.
type ExistingRef ¶ added in v0.18.0
type ExistingRef = tracker.ExistingRef
ExistingRef is a numeric reference to an issue outside the plan.