Skip to content

Instantly share code, notes, and snippets.

@seanedwards
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save seanedwards/0c723722d7b3343078f2 to your computer and use it in GitHub Desktop.

Select an option

Save seanedwards/0c723722d7b3343078f2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'trello'
require 'date'
Trello.configure do |config|
config.developer_public_key = "*****"
config.member_token = "*****"
end
now = DateTime.now
lastlist = nil
Trello::Board.find("*****").lists.target.each do |list|
if list.name == "Backlog" then
# Skip backlog
lastlist = list
elsif nil != lastlist then
list.cards.target.each do |card|
card.move_to_list(lastlist)
card.save
end
list.name = now.strftime("%A %m/%d")
list.save
now = now.next_day(1)
lastlist = list
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment