comment

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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 Filter

type Filter struct {
	Author     string
	Involves   string
	Resolved   *bool
	Unresolved *bool
	Outdated   *bool
	Path       string
	Since      *time.Time
	Until      *time.Time
}

func (Filter) IsEmpty

func (f Filter) IsEmpty() bool

func (Filter) IssueComments

func (f Filter) IssueComments(comments []IssueComment) []IssueComment

func (Filter) Threads

func (f Filter) Threads(threads []ReviewThread) []ReviewThread

type IssueComment

type IssueComment struct {
	ID              string
	DatabaseID      int
	Author          string
	Body            string
	URL             string
	CreatedAt       time.Time
	UpdatedAt       time.Time
	IsMinimized     bool
	MinimizedReason string
}

type PRComments

type PRComments struct {
	ReviewThreads []ReviewThread
	IssueComments []IssueComment
}

type ReviewComment

type ReviewComment struct {
	ID         string
	DatabaseID int
	Author     string
	Body       string
	URL        string
	DiffHunk   string
	CommitOID  string
	State      string
	CreatedAt  time.Time
	UpdatedAt  time.Time
	IsOutdated bool
}

type ReviewThread

type ReviewThread struct {
	IsResolved bool
	IsOutdated bool
	ResolvedBy string
	Path       string
	Line       int
	StartLine  int
	DiffSide   string
	Comments   []ReviewComment
}

Jump to

Keyboard shortcuts

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