feat: Add ability to duplicate card (#668)

This commit is contained in:
Matthieu Bollot
2024-04-05 22:40:35 +02:00
committed by GitHub
parent d7847fe89b
commit 6cd9da844f
21 changed files with 505 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
const POSITION_GAP = 65535; // TODO: move to config
module.exports = {
inputs: {
user: {
@@ -124,7 +126,7 @@ module.exports = {
getUsedTrelloLabels().map(async (trelloLabel, index) => {
const plankaLabel = await Label.create({
boardId: inputs.board.id,
position: 65535 * (index + 1), // TODO: move to config
position: POSITION_GAP * (index + 1),
name: trelloLabel.name || null,
color: getPlankaLabelColor(trelloLabel.color),
}).fetch();