Permalink
Browse files

Use new .all_issues method.

Signed-off-by: Felipe Coury <felipe.coury@gmail.com>
  • Loading branch information...
1 parent fcc70cf commit 1b902d38a9c9e078324f33c51514ffd67b6dad8b @runpaint committed with fcoury Apr 22, 2009
Showing with 3 additions and 5 deletions.
  1. +3 −5 contrib/backup.rb
View
@@ -79,11 +79,9 @@ def issues
@user.repositories.each do |repo|
puts "#{repo.name}"
Dir.chdir(repo.name) do
- %w{open closed}.each do | state|
- repo.issues(state).each do |issue|
- puts "* #{issue.title} [#{state}]"
- issue.to_yaml_file(issue.number)
- end
+ repo.all_issues.each do |issue|
+ puts "* #{issue.title} [#{issue.state}]"
+ issue.to_yaml_file(issue.number)
end
end
end

0 comments on commit 1b902d3

Please sign in to comment.