Merge pull request #2054 from zmwangx/bump-formula-pr-smarter-dupe

bump-formula-pr: improve duplicate detection
This commit is contained in:
Mike McQuaid 2017-02-20 22:54:51 +00:00 committed by GitHub
commit 96a695bc6d

View File

@ -80,7 +80,8 @@ module Homebrew
def fetch_pull_requests(formula)
GitHub.issues_for_formula(formula.name, tap: formula.tap).select do |pr|
pr["html_url"].include?("/pull/")
pr["html_url"].include?("/pull/") &&
/(^|\s)#{Regexp.quote(formula.name)}(:|\s|$)/i =~ pr["title"]
end
rescue GitHub::RateLimitExceededError => e
opoo e.message