prow/plugins/blockade/blockade.go
func calculateBlocks(changes []github.PullRequestChange, blockades []blockade) summary {
	sum := make(summary)
	for _, change := range changes {
		for _, b := range blockades {
			if b.isBlocked(change.Filename) {
				sum[b.explanation] = append(sum[b.explanation], change)
			}
		}
	}
	return sum
}
func calculateBlocks(changes []github.PullRequestChange, blockades []blockade) summary {
	sum := make(summary)
	for _, change := range changes {
		for _, b := range blockades {
			if b.isBlocked(change.Filename) {
				sum[b.explanation] = append(sum[b.explanation], change)
			}
		}
	}
	return sum
}
func calculateBlocks ( changes [ ] github . PullRequestChange , blockades [ ] blockade ) summary { sum := make ( summary ) for _ , change := range changes { for _ , b := range blockades { if b . isBlocked ( change . Filename ) { sum [ b . explanation ] = append ( sum [ b . explanation ] , change ) } } } return sum }
// calculateBlocks determines if a PR should be blocked and returns the summary describing the block.
calculateBlocks determines if a PR should be blocked and returns the summary describing the block .