Documentation
¶
Index ¶
- func AdjustColumnWidths(cols []TableColumn, prs []PRInfo)
- func AuthorInfoFunc(p PRInfo) string
- func ColorizeStatus(state StatusState, detail string) string
- func DependencyInfoFunc(p PRInfo) string
- func ExtractDependencyName(title string) string
- func ExtractOwnerRepo(htmlURL string) (string, string, error)
- func ExtractVersion(title string) string
- func IsDependencyUpdateTitle(title string) bool
- func MakeHyperlink(text, url string) string
- func PrintPlainResults(w *os.File, status *PRStatus)
- func PrintRow(w *os.File, e StatusEntry, cols []TableColumn)
- func PrintTableHeader(w *os.File, cols []TableColumn)
- func RepoInfoFunc(p PRInfo) string
- func UpdateTable(w *os.File, entries []StatusEntry, cols []TableColumn)
- func VersionInfoFunc(p PRInfo) string
- type PRGroup
- type PRInfo
- type PRStatus
- func (s *PRStatus) ActionRequired() []StatusEntry
- func (s *PRStatus) Add(pr PRInfo) int
- func (s *PRStatus) FormatSummary() string
- func (s *PRStatus) Len() int
- func (s *PRStatus) MergedEntries() []StatusEntry
- func (s *PRStatus) SkippedEntries() []StatusEntry
- func (s *PRStatus) Snapshot() []StatusEntry
- func (s *PRStatus) Summary() (merged, failed, skipped int)
- func (s *PRStatus) Update(idx int, state StatusState, detail string)
- type StatusEntry
- type StatusState
- type TableColumn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdjustColumnWidths ¶ added in v0.0.20
func AdjustColumnWidths(cols []TableColumn, prs []PRInfo)
AdjustColumnWidths widens each column so every value fits without truncation.
func AuthorInfoFunc ¶ added in v0.0.9
func ColorizeStatus ¶ added in v0.0.11
func ColorizeStatus(state StatusState, detail string) string
func DependencyInfoFunc ¶ added in v0.0.6
func ExtractDependencyName ¶
func ExtractOwnerRepo ¶ added in v0.0.11
ExtractOwnerRepo parses owner and repo from a GitHub HTML URL (e.g. "https://github.com/OWNER/REPO/pull/123").
func ExtractVersion ¶ added in v0.0.9
func IsDependencyUpdateTitle ¶ added in v0.0.5
IsDependencyUpdateTitle returns true if the PR title looks like an automated dependency update (Renovate or Dependabot), regardless of who authored it.
func MakeHyperlink ¶
func PrintPlainResults ¶ added in v0.0.7
func PrintRow ¶ added in v0.0.6
func PrintRow(w *os.File, e StatusEntry, cols []TableColumn)
func PrintTableHeader ¶
func PrintTableHeader(w *os.File, cols []TableColumn)
func RepoInfoFunc ¶ added in v0.0.6
func UpdateTable ¶
func UpdateTable(w *os.File, entries []StatusEntry, cols []TableColumn)
func VersionInfoFunc ¶ added in v0.0.9
Types ¶
type PRStatus ¶
type PRStatus struct {
// contains filtered or unexported fields
}
func NewPRStatus ¶
func NewPRStatus() *PRStatus
func (*PRStatus) ActionRequired ¶ added in v0.0.7
func (s *PRStatus) ActionRequired() []StatusEntry
func (*PRStatus) FormatSummary ¶
func (*PRStatus) MergedEntries ¶ added in v0.0.7
func (s *PRStatus) MergedEntries() []StatusEntry
func (*PRStatus) SkippedEntries ¶ added in v0.0.7
func (s *PRStatus) SkippedEntries() []StatusEntry
func (*PRStatus) Snapshot ¶
func (s *PRStatus) Snapshot() []StatusEntry
type StatusEntry ¶
type StatusEntry struct {
PR PRInfo
State StatusState
Detail string
}
type StatusState ¶
type StatusState int
const ( StatusPending StatusState = iota StatusChecking StatusApproving StatusMerging StatusRetrying StatusMerged StatusAlreadyMerged StatusAutoMerge StatusFailed StatusSkipped StatusConflict StatusUntrustedAuthor )
func (StatusState) String ¶
func (s StatusState) String() string
type TableColumn ¶ added in v0.0.9
func DependencySelectedColumns ¶ added in v0.0.9
func DependencySelectedColumns() []TableColumn
func FullColumns ¶ added in v0.0.9
func FullColumns() []TableColumn
func RepoSelectedColumns ¶ added in v0.0.9
func RepoSelectedColumns() []TableColumn
Click to show internal directories.
Click to hide internal directories.