Skip to content

Commit

Permalink
Merge pull request #908 from carlocab/use-origin-master
Browse files Browse the repository at this point in the history
formulae_detect: actually use `origin/master` for starting SHA1
  • Loading branch information
carlocab committed Apr 14, 2023
2 parents db266d8 + 8917dfe commit 48c0a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/formulae_detect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def detect_formulae!(args:)
diff_end_sha1 = github_sha
# Use GitHub Actions variables for merge group jobs.
elsif ENV.fetch("GITHUB_EVENT_NAME", nil) == "merge_group"
origin_ref = "origin/#{github_ref.gsub(%r{^refs/heads/}, "")}"
diff_start_sha1 = rev_parse(origin_ref)
origin_ref = "origin/#{github_ref.gsub(%r{^refs/heads/}, "")}"
diff_end_sha1 = github_sha
# Use GitHub Actions variables for branch jobs.
else
Expand Down

0 comments on commit 48c0a31

Please sign in to comment.