diff options
| author | Jack Nagel | 2014-02-12 12:09:19 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-02-12 12:10:41 -0500 | 
| commit | f66eeec960b6c0bcde9a39c8811cab65f6fa8d67 (patch) | |
| tree | 5dd468775b88e7067de26535deaad55322e68e03 /Library | |
| parent | efb38686972d5446634ed6cd29d7f3e0aab91456 (diff) | |
| download | brew-f66eeec960b6c0bcde9a39c8811cab65f6fa8d67.tar.bz2 | |
Return only open issues in GitHub.issues_for_formula
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/utils.rb | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index ed1f691d0..5438f937f 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -311,7 +311,9 @@ module GitHub extend self      name = f.name if Formula === name      # don't include issues that just refer to the tool in their body -    issues_matching(name).select {|issue| issue['title'].include? name } +    issues_matching(name).select { |issue| +      issue["state"] == "open" && issue["title"].include?(name) +    }    end    def find_pull_requests rx  | 
