We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6423c3 commit 4b40e68Copy full SHA for 4b40e68
cmd/check-bottle-modification.rb
@@ -38,9 +38,10 @@ def commit_modifies_bottle_block?(sha)
38
39
files = response.fetch("files")
40
files.reject! do |file|
41
- filename = file.fetch("filename")
+ next true if file.fetch("status") == "removed"
42
43
- !filename.start_with?("Formula") || !filename.end_with?(".rb")
+ filename = file.fetch("filename")
44
+ !filename.start_with?("Formula/") || !filename.end_with?(".rb")
45
end
46
47
files.any? { |file| patch_modifies_bottle_block?(file.fetch("patch")) }
0 commit comments