Documentation
¶
Overview ¶
Package prfilter holds the Model-independent PR-list domain logic: the GitHub-search-like filter query DSL, the CI health it filters on, and base/head stack grouping.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CIHealth ¶
CIHealth is the health word the ci: filter matches on, falling back to the list rollup state when the individual checks have not been loaded yet.
func CheckCounts ¶
CheckCounts buckets a PR's checks into pending, failed, and passed.
func CheckHealth ¶
CheckHealth reduces a PR's checks to one health word and the count that decided it: any failure wins, then anything pending, then passes.
Types ¶
type Stack ¶
type Stack struct {
ID string
Title string
Entries []StackEntry
// contains filtered or unexported fields
}
Stack groups the PRs that chain onto one root via base/head branches.
func BuildStacks ¶
BuildStacks groups PRs whose base branch is another PR's head branch into stacks, walking the exact base/head graph.
func SingleStacks ¶
SingleStacks wraps each PR in its own stack, for lists (like closed PRs) where base/head grouping is meaningless.
type StackEntry ¶
StackEntry is one PR inside a stack, at its depth in the base/head chain.