comments

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package comments is the TUI view for reviewing PR review threads across a repository, filterable to unresolved threads only.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRepoFormat = errors.New("invalid repo format, expected owner/repo")

ErrInvalidRepoFormat means the repository string was not in owner/repo form.

View Source
var ErrNoRepository = errors.New("no repository specified")

ErrNoRepository means the model was constructed without a repository to load threads from.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model represents the comments review TUI state.

func NewModel

func NewModel(repo string) Model

NewModel creates a comments model scanning all open PRs of the repo.

func NewModelWithOptions

func NewModelWithOptions(repo string, prNumber int, filter github.ThreadFilter) Model

NewModelWithOptions creates a comments model for a single PR (prNumber > 0) with filters applied.

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model.

func (Model) Update

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

Update handles messages.

func (Model) View

func (m Model) View() string

View renders the model.

Jump to

Keyboard shortcuts

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