plan

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	// ParentEdge is the sub-issue edge.
	ParentEdge = tracker.ParentEdge
	// BlockedByEdge is the dependency edge.
	BlockedByEdge = tracker.BlockedByEdge
)
View Source
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 Edge

type Edge = tracker.Edge

Edge is one unresolved dependency an entry declares.

type EdgeKind

type EdgeKind = tracker.EdgeKind

EdgeKind names the two dependency edges an entry can declare.

type Entry

type Entry = tracker.PlanEntry

Entry is one issue to create.

func Parse

func Parse(r io.Reader) ([]Entry, error)

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.

type Ref

type Ref = tracker.PlanRef

Ref points at another issue: a plan entry by local id, or an existing issue by number. Exactly one field is set.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL