Documentation
¶
Index ¶
- func DependencyInfoFunc(p PRInfo) string
- func ExtractDependencyName(title string) string
- func IsDependencyUpdateTitle(title string) bool
- func MakeHyperlink(text, url string) string
- func ParseRepoFromURL(url string) (owner, repo string, err error)
- func PrintPlainResults(w *os.File, status *PRStatus)
- func PrintRow(w *os.File, e StatusEntry, infoFn InfoFunc)
- func PrintTableHeader(w *os.File, infoLabel string)
- func RepoInfoFunc(p PRInfo) string
- func UpdateTable(w *os.File, entries []StatusEntry, infoLabel string, infoFn InfoFunc)
- type InfoFunc
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DependencyInfoFunc ¶ added in v0.0.6
func ExtractDependencyName ¶
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 ParseRepoFromURL ¶
func PrintPlainResults ¶ added in v0.0.7
func PrintTableHeader ¶
func RepoInfoFunc ¶ added in v0.0.6
func UpdateTable ¶
func UpdateTable(w *os.File, entries []StatusEntry, infoLabel string, infoFn InfoFunc)
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 StatusMerged StatusAlreadyMerged StatusAutoMerge StatusFailed StatusSkipped StatusConflict )
func (StatusState) String ¶
func (s StatusState) String() string
Click to show internal directories.
Click to hide internal directories.