aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorJack Nagel2014-02-12 12:09:19 -0500
committerJack Nagel2014-02-12 12:10:41 -0500
commitf66eeec960b6c0bcde9a39c8811cab65f6fa8d67 (patch)
tree5dd468775b88e7067de26535deaad55322e68e03 /Library/Homebrew/utils.rb
parentefb38686972d5446634ed6cd29d7f3e0aab91456 (diff)
downloadbrew-f66eeec960b6c0bcde9a39c8811cab65f6fa8d67.tar.bz2
Return only open issues in GitHub.issues_for_formula
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb4
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