From ea32e9e5d217149bae5afa260e66d8c3ae5a8b42 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 12 Feb 2014 12:09:19 -0500 Subject: Return only open issues in GitHub.issues_for_formula --- Library/Homebrew/utils.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/utils.rb') 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 -- cgit v1.2.3