Freight filtering rules #1270
Labels
area/controller
area/freight
area/usability
good first issue
Good issue for a new contributor to handle
kind/enhancement
priority/normal
size/medium
Milestone
Proposed Feature
Subscribing to a git repository can be, in many cases, very noisy and will produce inconsequential freight. Examples include:
Warehouses should allow users to define rules so that only when certain paths are changed, should new freight be generated. e.g. suppose for a kustomize layout, maybe only changes to these directories should produce freight:
Motivation
This will improve usability and filter out noise in the Freightline
Suggested Implementation
Warehouse API spec should introduce a new stanza on filtering rules. Before generating new Freight, it will see if the filtering rules apply and produce Freight accordingly.
NOTE: if we support git webhooks, the git webhook will have information about files that changed. This would avoid a git checkout. But I consider this an optimization and we shouldn't rely on this because we might miss a webhook.
The text was updated successfully, but these errors were encountered: