diff options
| author | Jack Nagel | 2014-02-12 12:09:19 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-12 12:10:41 -0500 |
| commit | ea32e9e5d217149bae5afa260e66d8c3ae5a8b42 (patch) | |
| tree | 7375149204b2327900c83b1fc56eeb79f746eb02 /Library/Homebrew/utils.rb | |
| parent | 52586bd2c88194944cc6dcdb24adc54f47f1198a (diff) | |
| download | homebrew-ea32e9e5d217149bae5afa260e66d8c3ae5a8b42.tar.bz2 | |
Return only open issues in GitHub.issues_for_formula
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -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 |
