Permalink
Browse files

Use new .all_issues method.

  • Loading branch information...
runpaint committed Apr 22, 2009
1 parent 8e613e3 commit 402d96d23d6ff5c335067d2d2edda6b2e50e30dc
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 402d96d

Please sign in to comment.