Skip to content

Commit

Permalink
Merge pull request #905 from carlocab/no-error-merge-group
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab committed Apr 14, 2023
2 parents c718f39 + c69b9fc commit e60a6ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/tests/formulae_detect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ def detect_formulae!(args:)

@testing_formulae += @added_formulae + modified_formulae

if @testing_formulae.blank? && @deleted_formulae.blank? && diff_start_sha1 == diff_end_sha1
# TODO: Remove `GITHUB_EVENT_NAME` check when formulae detection
# is fixed for merge groups.
if @testing_formulae.blank? &&
@deleted_formulae.blank? &&
diff_start_sha1 == diff_end_sha1 &&
(ENV["GITHUB_EVENT_NAME"] != "merge_group")
raise UsageError, "Did not find any formulae or commits to test!"
end

Expand Down

0 comments on commit e60a6ea

Please sign in to comment.