reposection

package
v4.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const SectionType = "repo"

Variables

This section is empty.

Functions

func GetSectionColumns

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

Types

type Model

type Model struct {
	section.BaseModel

	Branches []branch.Branch
	Prs      []data.PullRequestData
	// contains filtered or unexported fields
}

func FetchAllBranches

func FetchAllBranches(ctx context.ProgramContext) (Model, tea.Cmd)

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) GetDimensions added in v4.6.0

func (m Model) GetDimensions() constants.Dimensions

func (*Model) GetItemPluralForm

func (m *Model) GetItemPluralForm() string

func (*Model) GetItemSingularForm

func (m *Model) GetItemSingularForm() string

func (*Model) GetPagerContent added in v4.6.0

func (m *Model) GetPagerContent() string

func (*Model) GetTotalCount

func (m *Model) GetTotalCount() *int

func (*Model) NumRows

func (m *Model) NumRows() int

func (*Model) OpenGithub added in v4.6.0

func (m *Model) OpenGithub() tea.Cmd

func (*Model) ResetRows

func (m *Model) ResetRows()

func (*Model) Update

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

func (*Model) UpdateProgramContext added in v4.6.0

func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)

func (*Model) View added in v4.6.0

func (m *Model) View() string

type RefreshBranchesMsg added in v4.6.0

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

type RefreshPrsMsg added in v4.6.0

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

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