prssection

package
v4.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const SectionType = "pr"

Variables

This section is empty.

Functions

func FetchAllSections

func FetchAllSections(
	ctx context.ProgramContext,
) (sections []section.Section, fetchAllCmd tea.Cmd)

func GetSectionColumns

func GetSectionColumns(
	cfg config.PrsSectionConfig,
	ctx *context.ProgramContext,
) []table.Column

Types

type Model

type Model struct {
	section.BaseModel
	Prs []data.PullRequestData
}

func NewModel

func NewModel(
	id int,
	ctx *context.ProgramContext,
	cfg config.PrsSectionConfig,
	lastUpdated time.Time,
) Model

func (Model) BuildRows

func (m Model) BuildRows() []table.Row

func (*Model) FetchNextPageSectionRows

func (m *Model) FetchNextPageSectionRows() []tea.Cmd

func (*Model) GetCurrRow

func (m *Model) GetCurrRow() data.RowData

func (Model) GetItemPluralForm

func (m Model) GetItemPluralForm() string

func (Model) GetItemSingularForm

func (m Model) GetItemSingularForm() string

func (Model) GetTotalCount added in v4.3.0

func (m Model) GetTotalCount() *int

func (Model) IsLoading added in v4.3.0

func (m Model) IsLoading() bool

func (*Model) NumRows

func (m *Model) NumRows() int

func (*Model) ResetRows

func (m *Model) ResetRows()

func (Model) Update

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

type SectionPullRequestsFetchedMsg

type SectionPullRequestsFetchedMsg struct {
	Prs        []data.PullRequestData
	TotalCount int
	PageInfo   data.PageInfo
	TaskId     string
}

type UpdatePRMsg

type UpdatePRMsg struct {
	PrNumber         int
	IsClosed         *bool
	NewComment       *data.Comment
	ReadyForReview   *bool
	IsMerged         *bool
	AddedAssignees   *data.Assignees
	RemovedAssignees *data.Assignees
}

Jump to

Keyboard shortcuts

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