Documentation
¶
Overview ¶
Package pathfilter matches changed file paths against doublestar-style globs, the filter behind pipeline `paths` / `paths_ignore` and the deploy-on-push path filters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Match reports whether file matches glob. Supported syntax: `*` (any run of characters within one segment), `?` (one character within a segment), `**` as a whole segment (zero or more segments), `[abc]`, `[a-z]` and `[!a]` classes, and `{a,b}` alternation. A glob ending in "/" matches everything beneath that directory. Wildcards match dotfiles. Both sides are normalized, so backslash separators work.
Types ¶
type Filter ¶
Filter is a set of include globs and ignore globs. An empty Paths list includes every path; a path matching any Ignore glob is dropped.
func (Filter) Apply ¶
Apply decides whether a change touching files should run. An empty file list means the file set is unknown, so the answer is always to run.