Skip to content

Commit

Permalink
Use new .all_issues method.
Browse files Browse the repository at this point in the history
  • Loading branch information
runpaint committed Apr 22, 2009
1 parent 8e613e3 commit 402d96d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions contrib/backup.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -79,11 +79,9 @@ def issues
@user.repositories.each do |repo| @user.repositories.each do |repo|
puts "#{repo.name}" puts "#{repo.name}"
Dir.chdir(repo.name) do Dir.chdir(repo.name) do
%w{open closed}.each do | state| repo.all_issues.each do |issue|
repo.issues(state).each do |issue| puts "* #{issue.title} [#{issue.state}]"
puts "* #{issue.title} [#{state}]" issue.to_yaml_file(issue.number)
issue.to_yaml_file(issue.number)
end
end end
end end
end end
Expand Down

0 comments on commit 402d96d

Please sign in to comment.