1- import GithubHelper from './githubHelper' ;
1+ import { GithubHelper , SimpleLabel } from './githubHelper' ;
22import GitlabHelper from './gitlabHelper' ;
33import settings from '../settings' ;
44
@@ -10,9 +10,6 @@ import * as fs from 'fs';
1010
1111import AWS from 'aws-sdk' ;
1212import { sleep } from './utils' ;
13- import { LabelSchema } from '@gitbeaker/core/dist/types/types' ;
14-
15- type Label = Pick < LabelSchema , 'name' | 'color' | 'description' > ;
1613
1714const issueCounters = {
1815 nrOfPlaceholderIssues : 0 ,
@@ -228,7 +225,9 @@ async function transferLabels(attachmentLabel = true, useLowerCase = true) {
228225 inform ( 'Transferring Labels' ) ;
229226
230227 // Get a list of all labels associated with this project
231- let labels : Label [ ] = await gitlabApi . Labels . all ( settings . gitlab . projectId ) ;
228+ let labels : SimpleLabel [ ] = await gitlabApi . Labels . all (
229+ settings . gitlab . projectId
230+ ) ;
232231
233232 // get a list of the current label names in the new GitHub repo (likely to be just the defaults)
234233 let githubLabels : string [ ] = await githubHelper . getAllGithubLabelNames ( ) ;
@@ -238,16 +237,13 @@ async function transferLabels(attachmentLabel = true, useLowerCase = true) {
238237 const hasAttachmentLabel = {
239238 name : 'has attachment' ,
240239 color : '#fbca04' ,
241- description : 'Issue has attachments which might not have been migrated' ,
242240 } ;
243241 labels . push ( hasAttachmentLabel ) ;
244242 }
245243
246244 const gitlabMergeRequestLabel = {
247245 name : 'gitlab merge request' ,
248246 color : '#b36b00' ,
249- description :
250- 'An issue replacing a merge request which cannot be migrated because of deleted branches' ,
251247 } ;
252248 labels . push ( gitlabMergeRequestLabel ) ;
253249
0 commit comments