models

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package models defines the data objects shared across lazyworktree packages.

Index

Constants

View Source
const (
	// LastSelectedFilename stores the last worktree selection for a repo.
	LastSelectedFilename = ".last-selected"
	// CacheFilename stores cached worktree metadata for faster loads.
	CacheFilename = ".worktree-cache.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CICheck

type CICheck struct {
	Name       string // Name of the check/job
	Status     string // Status: "completed", "in_progress", "queued", "pending"
	Conclusion string // Conclusion: "success", "failure", "skipped", "cancelled", etc.
}

CICheck represents a single CI check/job status.

type PRInfo

type PRInfo struct {
	Number int
	State  string
	Title  string
	URL    string
	Branch string // Branch name (headRefName for GitHub, source_branch for GitLab)
}

PRInfo captures the relevant metadata for a pull request.

type WorktreeInfo

type WorktreeInfo struct {
	Path         string
	Branch       string
	IsMain       bool
	Dirty        bool
	Ahead        int
	Behind       int
	HasUpstream  bool
	LastActive   string
	LastActiveTS int64
	PR           *PRInfo
	Untracked    int
	Modified     int
	Staged       int
	Divergence   string
}

WorktreeInfo summarizes the information for a git worktree.

Jump to

Keyboard shortcuts

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