Help us shape the future of Go! Take the 2026 Go Developer Survey

ticket

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 3 Imported by: 0

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"`
	Trivial                  bool   `json:"trivial"`
	CurrentStepExpectedLines int    `json:"current_step_expected_lines"`
}

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