Created
July 30, 2018 22:23
-
-
Save yhirano55/a73b27a5a151cf42d73e140abe6d36a6 to your computer and use it in GitHub Desktop.
trello の json からカード名を抜き出すスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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