diff options
| author | Max Howell | 2011-08-31 15:39:16 +0100 |
|---|---|---|
| committer | Max Howell | 2011-08-31 15:39:16 +0100 |
| commit | 93aa37cad58e68a9f97dacea9f506a2434db74e5 (patch) | |
| tree | 2f55bb3988f6d2d950f21650a185f1c0ecac563a /Library/Homebrew | |
| parent | 1cf67a1b2b097342b7127c531ab2c74444310b35 (diff) | |
| download | homebrew-93aa37cad58e68a9f97dacea9f506a2434db74e5.tar.bz2 | |
Don't point user at issues that are probably unrelated
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/utils.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 81f7d6192..08e6c5264 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -371,8 +371,12 @@ module GitHub extend self issues = [] open "http://github.com/api/v2/yaml/issues/search/mxcl/homebrew/open/#{name}" do |f| - YAML::load(f.read)['issues'].each do |issue| - issues << 'https://github.com/mxcl/homebrew/issues/#issue/%s' % issue['number'] + 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'] + end end end |
