Skip to content

Instantly share code, notes, and snippets.

@yhirano55
Created July 30, 2018 22:23
Show Gist options
  • Save yhirano55/a73b27a5a151cf42d73e140abe6d36a6 to your computer and use it in GitHub Desktop.
Save yhirano55/a73b27a5a151cf42d73e140abe6d36a6 to your computer and use it in GitHub Desktop.
trello の json からカード名を抜き出すスクリプト
content = JSON.parse(File.read("./trello.json"))
content["actions"].select { |a| a["type"] == "createCard" && a.dig("data", "list", "name") == "Keep" }.map { |a| a.dig("data", "card", "name") }.each(&method(:puts))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment