Don't point user at issues that are probably unrelated
This commit is contained in:
parent
c0653d7581
commit
5b00ab493b
@ -371,10 +371,14 @@ module GitHub extend self
|
|||||||
issues = []
|
issues = []
|
||||||
|
|
||||||
open "http://github.com/api/v2/yaml/issues/search/mxcl/homebrew/open/#{name}" do |f|
|
open "http://github.com/api/v2/yaml/issues/search/mxcl/homebrew/open/#{name}" do |f|
|
||||||
YAML::load(f.read)['issues'].each do |issue|
|
yaml = YAML::load(f.read);
|
||||||
|
yaml['issues'].each do |issue|
|
||||||
|
# don't include issues that just refer to the tool in their body
|
||||||
|
if issue['title'].include? name
|
||||||
issues << 'https://github.com/mxcl/homebrew/issues/#issue/%s' % issue['number']
|
issues << 'https://github.com/mxcl/homebrew/issues/#issue/%s' % issue['number']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
issues
|
issues
|
||||||
rescue
|
rescue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user