lib/trello2kanboard.rb
def import_labels(project_id, labels)
    tags = @client.tags(project_id).map { |tag| tag['name'] }
    tags_to_create = labels - tags
    tags_to_create.each do |tag|
      @client.create_tag(project_id, tag)
    end
  end
# Turn labels on the Trello side into tags on the Kanboard side
Turn labels on the Trello side into tags on the Kanboard side
Turn labels on the Trello side into tags on the Kanboard side
def import_labels(project_id, labels)
    tags = @client.tags(project_id).map { |tag| tag['name'] }
    tags_to_create = labels - tags
    tags_to_create.each do |tag|
      @client.create_tag(project_id, tag)
    end
  end
def import_labels ( project_id , labels ) tags = @client . tags ( project_id ) . map { | tag | tag [ 'name' ] } tags_to_create = labels - tags tags_to_create . each do | tag | @client . create_tag ( project_id , tag ) end end
Turn labels on the Trello side into tags on the Kanboard side
Turn labels on the Trello side into tags on the Kanboard side
project_id
labels