ticket

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 3 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Phase

type Phase string
const (
	PhaseBrainstorm     Phase = "brainstorm"
	PhasePlan           Phase = "plan"
	PhaseApprove        Phase = "approve"
	PhaseImplement      Phase = "implement"
	PhaseReview         Phase = "review"
	PhaseReadyForReview Phase = "ready-for-review"
	PhaseNeedsAttention Phase = "needs-attention"
	PhaseClose          Phase = "close"
	PhaseClosed         Phase = "closed"
)

type State

type State struct {
	ID           string `json:"id"`
	Description  string `json:"description"`
	Phase        Phase  `json:"phase"`
	Branch       string `json:"branch"`
	WorktreePath string `json:"worktree_path"`
	// BranchBaseSHA is the exact commit the worktree was created from, when
	// the base was pinned at creation (--base). Empty for
	// tickets scaffolded from an unpinned HEAD. Epic child tickets must
	// have it set: a child that starts from whatever HEAD happened to
	// contain is not guaranteed to include its integrated predecessors.
	BranchBaseSHA string `json:"branch_base_sha,omitempty"`
	// AcceptanceCommands are an epic child's approved acceptance commands;
	// the gate runs them after gate.commands.
	AcceptanceCommands       []string `json:"acceptance_commands,omitempty"`
	Trivial                  bool     `json:"trivial"`
	CurrentStepExpectedLines int      `json:"current_step_expected_lines"`
	// IssueNumber and IssueURL link this ticket to a GitHub issue (set by
	// `golem ticket new --from-issue` and refreshed by `golem issue sync`).
	// Zero/empty means the ticket has no linked issue.
	IssueNumber int    `json:"issue_number,omitempty"`
	IssueURL    string `json:"issue_url,omitempty"`
}

func Load

func Load(ticketDir string) (*State, error)

func New

func New(id, description string, trivial bool) *State

New skips straight to PhasePlan for trivial tickets (spec: Ticket Lifecycle, step 1) — everything else starts at PhaseBrainstorm.

func (*State) Save

func (s *State) Save(ticketDir string) error

Jump to

Keyboard shortcuts

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