prow/genfiles/genfiles.go
func (g *Group) Match(path string) bool {
	if g.Paths[path] {
		return true
	}

	for prefix := range g.PathPrefixes {
		if strings.HasPrefix(path, prefix) {
			return true
		}
	}

	base := filepath.Base(path)

	if g.FileNames[base] {
		return true
	}

	for prefix := range g.FilePrefixes {
		if strings.HasPrefix(base, prefix) {
			return true
		}
	}

	return false
}
func (g *Group) Match(path string) bool {
	if g.Paths[path] {
		return true
	}

	for prefix := range g.PathPrefixes {
		if strings.HasPrefix(path, prefix) {
			return true
		}
	}

	base := filepath.Base(path)

	if g.FileNames[base] {
		return true
	}

	for prefix := range g.FilePrefixes {
		if strings.HasPrefix(base, prefix) {
			return true
		}
	}

	return false
}
// Match determines whether a file, given here by its full path
// is included in the generated files group.