merge

package
v0.17.15 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package merge provides a TUI component for displaying merge progress.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompleteMsg

type CompleteMsg struct {
	Summary string
}

CompleteMsg indicates the merge is complete

type EstimatedDurationMsg

type EstimatedDurationMsg time.Duration

EstimatedDurationMsg updates the estimated duration

type Group

type Group struct {
	Label       string
	StepIndices []int
}

Group represents a group of steps that should be displayed as a single line

type Model

type Model struct {
	core.BaseModel // Embedded for ReadySignaler interface
	Groups         []Group
	Steps          []StepItem
	CurrentIdx     int

	Quitting bool // unique to merge, used in View()

	EstimatedDuration time.Duration
	Summary           string
	// contains filtered or unexported fields
}

Model is the bubbletea model for merge progress It embeds core.BaseModel for standard lifecycle handling.

func NewModel

func NewModel() *Model

NewModel creates a new merge model

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init initializes the bubbletea model.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles message updates for the bubbletea model

func (*Model) View

func (m *Model) View() tea.View

View renders the TUI

type PlanLoadedMsg

type PlanLoadedMsg struct {
	Groups           []Group
	StepDescriptions []string
}

PlanLoadedMsg indicates the merge plan has been loaded

type StepCompleteMsg

type StepCompleteMsg struct {
	StepIndex int
}

StepCompleteMsg indicates a step has completed

type StepFailedMsg

type StepFailedMsg struct {
	StepIndex int
	Error     error
}

StepFailedMsg indicates a step has failed

type StepItem

type StepItem struct {
	StepIndex   int
	Description string
	Status      StepStatus
	Error       error
	WaitElapsed time.Duration
	WaitTimeout time.Duration
	Checks      []github.CheckDetail
}

StepItem represents a step in the merge process

type StepStartMsg

type StepStartMsg struct {
	StepIndex   int
	Description string
}

StepStartMsg indicates a step has started

type StepStatus

type StepStatus string

StepStatus represents the status of a merge step

const (
	StatusPending StepStatus = "pending"
	StatusRunning StepStatus = "running"
	StatusWaiting StepStatus = "waiting"
	StatusDone    StepStatus = "done"
	StatusError   StepStatus = "error"
)

Step status constants

type StepWaitingMsg

type StepWaitingMsg struct {
	StepIndex int
	Elapsed   time.Duration
	Timeout   time.Duration
	Checks    []github.CheckDetail
}

StepWaitingMsg indicates a step is waiting for CI

Jump to

Keyboard shortcuts

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