Skip to content

Commit

Permalink
Merge pull request #13655 from carlocab/pr-conflict-fix
Browse files Browse the repository at this point in the history
pr-pull: fix PRs conflicting with themselves
  • Loading branch information
carlocab authored Aug 5, 2022
2 parents d4ddfb8 + a829749 commit ff9c250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/dev-cmd/pr-pull.rb
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ def pr_check_conflicts(user, repo, pr)
"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] ||= []
Expand Down

0 comments on commit ff9c250

Please sign in to comment.