Documentation
¶
Index ¶
Constants ¶
View Source
const ( ColorReset = "\033[0m" ColorRed = "\033[31m" ColorGreen = "\033[32m" ColorYellow = "\033[33m" ColorBlue = "\033[34m" ColorGray = "\033[90m" ColorBold = "\033[1m" )
ANSI color codes
View Source
const ( IconApproved = "✓" IconChangesRequested = "✗" IconPending = "○" IconDraft = "◐" IconSuccess = "✓" IconFailure = "✗" IconInProgress = "⟳" IconNeutral = "—" )
Status icons
Variables ¶
This section is empty.
Functions ¶
func FormatPRTable ¶
func FormatPRTable(prs []*github.PullRequest, opts *PRFormatterOptions) string
FormatPRTable formats a list of pull requests as a table
Types ¶
type PRFormatterOptions ¶
type PRFormatterOptions struct {
UseColor bool // Enable color output
MaxTitleWidth int // Maximum width for title column (0 = no limit)
SortBy string // Sort field: "updated", "created", "number"
SortDesc bool // Sort in descending order
ShowSummary bool // Show summary row at the end
}
PRFormatterOptions contains options for formatting PR output
func DefaultPRFormatterOptions ¶
func DefaultPRFormatterOptions() *PRFormatterOptions
DefaultPRFormatterOptions returns options with sensible defaults
Click to show internal directories.
Click to hide internal directories.