Merge pull request #13655 from carlocab/pr-conflict-fix
pr-pull: fix PRs conflicting with themselves
This commit is contained in:
commit
ff9c250019
@ -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] ||= []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user