Versions in this module Expand all Collapse all v0 v0.0.8 Jul 15, 2026 Changes in this version + func CountOpenPRs(nodes []SubmitNode) int type Options + CanCreateStack bool + StackNumber int v0.0.7 Jun 30, 2026 Changes in this version + func BuildDrafts(nodes []SubmitNode) map[string]*PRDraft + func ClosedBranches(nodes []SubmitNode) []string + func CountNew(nodes []SubmitNode) int + func CountSelected(nodes []SubmitNode) int + func HasClosed(nodes []SubmitNode) bool + func PrefillDescription(node stackview.BranchNode, template string) string + func PrefillTitle(node stackview.BranchNode) string + func RenderBadge(s BranchState) string + func RenderDot(s BranchState) string + type BranchState int + const StateClosed + const StateDraft + const StateMerged + const StateNew + const StateOpen + const StateQueued + func DeriveState(node stackview.BranchNode) BranchState + func (s BranchState) Blocks() bool + func (s BranchState) Color() lipgloss.TerminalColor + func (s BranchState) Dot() string + func (s BranchState) Editable() bool + func (s BranchState) Label() string + func (s BranchState) Locked() bool + func (s BranchState) Selectable() bool + type Model struct + func New(opts Options) Model + func (m Model) Cancelled() bool + func (m Model) Init() tea.Cmd + func (m Model) Nodes() []SubmitNode + func (m Model) SubmitRequested() bool + func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m Model) View() string + type Options struct + Nodes []SubmitNode + RepoLabel string + Trunk stack.BranchRef + Version string + type PRDraft struct + Body string + Branch string + Draft bool + Include bool + Title string + type SubmitNode struct + Description string + Draft bool + Included bool + State BranchState + Submitted bool + Title string + func NewSubmitNodes(nodes []stackview.BranchNode, template string) []SubmitNode + func (n SubmitNode) Edited() bool + func (n SubmitNode) ToDraft() PRDraft