Documentation
¶
Overview ¶
Package board collects a project's board: what changed over a window, or where every task stands, as lookaround derives it from the project's tracker, host, git and ledger.
Index ¶
Constants ¶
const Page = 100
Page is how many tasks and PRs one source read lists.
const StateWindow = 7 * 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func Collect ¶
func Collect( ctx context.Context, entries []scope.ScopeEntry, warn io.Writer, now time.Time, span Span, stateView, remote bool, people []lookaround.Person, ) []lookaround.Board
Collect derives one board per entry; one that could not be bound is a board whose sources all failed, so the others still render. The feed's span is chosen once every entry's facts are in: the day is the person's.
Types ¶
type Span ¶
type Span struct {
Named *lookaround.Window
Today, LastWorkday lookaround.Window
}
A Span is the window the argument named, or for the feed's default two candidates chosen between once the facts are in.
func ResolveSpan ¶
func ResolveSpan( arg string, state bool, now time.Time, workdays func() (calendar.Workdays, error), ) (Span, error)
ResolveSpan goes through calendar, which owns every calendar rule. Working days are read only when the default or `last-workday` needs them; the state view takes a start alone, seven days back without a window.