Documentation
ΒΆ
Overview ΒΆ
Package focus parses a runner's focus, a board filter in GitHub's syntax such as `team:Bumblebee customer:Acme` or `kind:"Bug π"`, and matches it against the fields a task carries.
A filter is a list of qualifiers, all of which must hold:
- `field:value` holds when the field has the value. `field:a,b` holds when it has either. Values may be quoted: `kind:"Bug π"`.
- `-field:value` holds when the field has none of the values.
- `has:field` holds when the field has a value, `no:field` when it has none.
Field names and values compare without regard to case, and a field name ignores dashes, underscores and spaces, so `parent-issue` and `parentIssue` are one field. Nothing about a field is hard-coded.
Index ΒΆ
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
This section is empty.
Types ΒΆ
type Filter ΒΆ
type Filter struct {
// contains filtered or unexported fields
}
Filter is a parsed focus. The zero Filter matches every task.