Skip to content

Commit 69fa91a

Browse files
committed
Feature: transfer label descriptions
Now when labels are transferred, their descriptions are as well!
1 parent 861a964 commit 69fa91a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/githubHelper.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export interface MilestoneImport {
4949
export interface SimpleLabel {
5050
name: string;
5151
color: string;
52+
description: string;
5253
}
5354

5455
export interface SimpleMilestone {
@@ -765,6 +766,7 @@ export class GithubHelper {
765766
repo: this.githubRepo,
766767
name: label.name,
767768
color: label.color.substring(1), // remove leading "#" because gitlab returns it but github wants the color without it
769+
description: label.description,
768770
};
769771

770772
await utils.sleep(this.delayInMs);

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,15 @@ async function transferLabels(attachmentLabel = true, useLowerCase = true) {
340340
const hasAttachmentLabel = {
341341
name: 'has attachment',
342342
color: '#fbca04',
343+
description: 'Attachment was not transfered from GitLab',
343344
};
344345
labels.push(hasAttachmentLabel);
345346
}
346347

347348
const gitlabMergeRequestLabel = {
348349
name: 'gitlab merge request',
349350
color: '#b36b00',
351+
description: '',
350352
};
351353
labels.push(gitlabMergeRequestLabel);
352354

0 commit comments

Comments
 (0)