reposection

package
v4.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SectionType = "repo"

Variables

This section is empty.

Functions

func FetchAllBranches

func FetchAllBranches(
	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
	// contains filtered or unexported fields
}

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

func (m Model) GetTotalCount() *int

func (Model) IsLoading

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