Merge pull request #13655 from carlocab/pr-conflict-fix

pr-pull: fix PRs conflicting with themselves
This commit is contained in:
Carlo Cabrera 2022-08-05 22:24:25 +08:00 committed by GitHub
commit ff9c250019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,6 +373,8 @@ module Homebrew
"org:#{user}", repo: repo, state: "open", label: "\"no long build conflict\""
).each_with_object({}) do |long_build_pr, hash|
number = long_build_pr["number"]
next if number == pr.to_i
GitHub.get_pull_request_changed_files("#{user}/#{repo}", number).each do |file|
key = file["filename"]
hash[key] ||= []