{"id":21106951,"url":"https://github.com/buildo/trello-to-gh-projects","last_synced_at":"2025-03-14T09:16:53.730Z","repository":{"id":66184800,"uuid":"145008447","full_name":"buildo/trello-to-gh-projects","owner":"buildo","description":"Script to migrate PRISMA from Trello to Gh Projects","archived":false,"fork":false,"pushed_at":"2018-12-18T17:23:57.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T03:41:34.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buildo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-16T15:43:21.000Z","updated_at":"2018-12-18T17:23:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"35712a2b-8108-4113-8d5b-7631bd6c53ba","html_url":"https://github.com/buildo/trello-to-gh-projects","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Ftrello-to-gh-projects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Ftrello-to-gh-projects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Ftrello-to-gh-projects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Ftrello-to-gh-projects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildo","download_url":"https://codeload.github.com/buildo/trello-to-gh-projects/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243551327,"owners_count":20309300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T00:34:41.423Z","updated_at":"2025-03-14T09:16:53.707Z","avatar_url":"https://github.com/buildo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Script to migrate PRISMA from Trello to Gh Projects\n\n## How it works in 2 words\n\nit reads the JSON export of a Trello board and open an issue for each card of a whitelisted set of Trello list.\n\nEach issue is opened with the label defined in an option file based on:\n- which list is into\n- its Trello labels\n\n## Run it\n\n**Before** running the script you should:\n\n1. Clone this repo and run `yarn`\n2. Export your Trello board as JSON inside the cloned repo (Menu \u003e More \u003e Print and Export \u003e Export as JSON)\n3. Disable Trello PRISMA by removing it from [https://github.com/buildo/prisma/blob/master/config-ci.json](https://github.com/buildo/prisma/blob/master/config-ci.json)\n4. Enable PRISMA Gh Projects (follow instructions from PRISMA repo)\n5. Set up the project: add any open issue to the correct column\n\nIn order to work, the script requires four arguments:\n- `--in`: path to Trello JSON export\n- `--out`: the fullname of the repo you want to migrate the cards to (fullname is like `org/reponame`)\n- `--token`: a valid GitHub token\n- `--options`: path to your JSON options file\n\nIn your options file you can choose which lists should be migrated and which labels should be added to the newly created issues.\n\nIt's structured like this:\n\n```ts\ntype Options = {\n  lists: { [listName: string]: string[] } // right string[] should be an array of GitHub labels\n  labels: { [trelloLabelName: string]: string } // right `string` should be a GitHub label\n});\n```\n\nExample:\n\n```json\n{\n  \"labels\": {\n    \"defect\": \"bug\",\n  },\n  \"lists\": {\n    \"backlog\": [],\n    \"tech debt\": [\"tech debt\"],\n    \"defects/bugs\": [\"bug\"]\n  }\n}\n```\n\nIn the example above we're:\n- mapping the label `defect` to `bug` (any other label will be ignored)\n- migrating only three lists:\n  - backlog\n  - tech debt\n  - defects/bugs\n- forcing every card in \"tech debt\" list to have the `tech debt` label\n- forcing every card in \"defects/bugs\" list to have the `bug` label\n\nCreate an options file inside the cloned repo.\n\nFinally, you can run the script by typing something like:\n\n```\nyarn start --in exportedTrello.json --out org/reponame --token abc123 --options myOptions.json\n```\n\nThe script will now quickly open the issues in series. At the same time, PRISMA will see newly created issue and, as always, will add them to the project in the correct column.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildo%2Ftrello-to-gh-projects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildo%2Ftrello-to-gh-projects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildo%2Ftrello-to-gh-projects/lists"}