Easy to use nodejs-based scripts for migrate Gitlab project into Trello board.
Preparation
- Export Gitlab project.
- Move
project.json
into data folder. - Create Trello board.
- Setup
/config.js
. (token
,key
,boardId
andboardShortId
.- Take a look at https://trello.com/app-key.
- API docs https://developers.trello.com/v1.0/reference#introduction.
- Take a look at folder
/tasks
.
Tasks
Cleanup all cards from your trello board. Great for testing.
node tasks/remove-all-cards.js
Convert Gitlab labels to Trello labels. With default blue color.
node tasks/labels2labels.js
Convert all milestones into board's lists.
node tasks/milestones2lists.js
Convert all issues with discussion into cards with comments.
node tasks/issues2cards.js
Take a look at this task closer, it needs to be configured.
Batching limit
const BUFFER_START = 0;
const BUFFER_END = 100;
Connector
You have to store labels and lists from Trello into connector.js to match the issues properly.
- Dump all labels (
https://api.trello.com/1/boards/{boardId}/labels?token={TOKEN}&key={KEY}
) - Dump all lists (
https://api.trello.com/1/boards/{boardId}/lists?token={TOKEN}&key={KEY}
)
You should also map the Gitlab users into connector.
Feel free to open PR with new tasks.