diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index d2af84fcc9..79cfac012d 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -219,7 +219,7 @@ class BuildError < RuntimeError end def fetch_issues - GitHub.issues_for_formula(formula.name) + GitHub.issues_for_formula(formula.name, :tap => formula.tap) rescue GitHub::RateLimitExceededError => e opoo e.message [] diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 0675cce5dc..509a5ff206 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -663,7 +663,7 @@ module GitHub def build_search_qualifier_string(qualifiers) { - :repo => "Homebrew/homebrew", + :repo => "Homebrew/homebrew-core", :in => "title" }.update(qualifiers).map do |qualifier, value| "#{qualifier}:#{value}" @@ -679,8 +679,9 @@ module GitHub end end - def issues_for_formula(name) - issues_matching(name, :state => "open") + def issues_for_formula(name, options = {}) + tap = options[:tap] || CoreTap.instance + issues_matching(name, :state => "open", :repo => "#{tap.user}/homebrew-#{tap.repo}") end def print_pull_requests_matching(query)