prow/pjutil/filter.go
func AggregateFilter(filters []Filter) Filter {
	return func(presubmit config.Presubmit) (bool, bool, bool) {
		for _, filter := range filters {
			if shouldRun, forced, defaults := filter(presubmit); shouldRun {
				return shouldRun, forced, defaults
			}
		}
		return false, false, false
	}
}
func AggregateFilter(filters []Filter) Filter {
	return func(presubmit config.Presubmit) (bool, bool, bool) {
		for _, filter := range filters {
			if shouldRun, forced, defaults := filter(presubmit); shouldRun {
				return shouldRun, forced, defaults
			}
		}
		return false, false, false
	}
}
func AggregateFilter ( filters [ ] Filter ) Filter { return func ( presubmit config . Presubmit ) ( bool , bool , bool ) { for _ , filter := range filters { if shouldRun , forced , defaults := filter ( presubmit ) ; shouldRun { return shouldRun , forced , defaults } } return false , false , false } }
// AggregateFilter builds a filter that evaluates the child filters in order
// and returns the first match
AggregateFilter builds a filter that evaluates the child filters in order and returns the first match