Documentation ¶
Index ¶
- Constants
- func GetSectionColumns(ctx *context.ProgramContext, cfg config.PrsSectionConfig) []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) GetDimensions() constants.Dimensions
- func (m *Model) GetItemPluralForm() string
- func (m *Model) GetItemSingularForm() string
- func (m *Model) GetPagerContent() string
- func (m *Model) GetTotalCount() *int
- func (m *Model) NumRows() int
- func (m *Model) OpenGithub() tea.Cmd
- func (m *Model) ResetRows()
- func (m *Model) Update(msg tea.Msg) (section.Section, tea.Cmd)
- func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)
- func (m *Model) View() string
- type RefreshBranchesMsg
- type RefreshPrsMsg
- type SectionPullRequestsFetchedMsg
- type UpdatePRMsg
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) FetchNextPageSectionRows ¶
func (*Model) GetCurrRow ¶
func (Model) GetDimensions ¶ added in v4.6.0
func (m Model) GetDimensions() constants.Dimensions
func (*Model) GetItemPluralForm ¶
func (*Model) GetItemSingularForm ¶
func (*Model) GetPagerContent ¶ added in v4.6.0
func (*Model) GetTotalCount ¶
func (*Model) OpenGithub ¶ added in v4.6.0
func (*Model) UpdateProgramContext ¶ added in v4.6.0
func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)
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
}
Click to show internal directories.
Click to hide internal directories.