Documentation ¶
Index ¶
- Constants
- func FetchAllBranches(ctx context.ProgramContext) (sections []section.Section, fetchAllCmd tea.Cmd)
- func GetSectionColumns(cfg config.PrsSectionConfig, ctx *context.ProgramContext) []table.Column
- type Model
- func (m Model) BuildRows() []table.Row
- func (m *Model) FetchNextPageSectionRows() []tea.Cmd
- func (m *Model) GetCurrRow() data.RowData
- func (m Model) GetItemPluralForm() string
- func (m Model) GetItemSingularForm() string
- func (m Model) GetTotalCount() *int
- func (m Model) IsLoading() bool
- func (m *Model) NumRows() int
- func (m *Model) ResetRows()
- func (m Model) Update(msg tea.Msg) (section.Section, tea.Cmd)
- type SectionPullRequestsFetchedMsg
- type UpdatePRMsg
Constants ¶
View Source
const SectionType = "repo"
Variables ¶
This section is empty.
Functions ¶
func FetchAllBranches ¶
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) FetchNextPageSectionRows ¶
func (*Model) GetCurrRow ¶
func (Model) GetItemPluralForm ¶
func (Model) GetItemSingularForm ¶
func (Model) GetTotalCount ¶
Click to show internal directories.
Click to hide internal directories.