async function createLabels({ owner, repo }) {
  try {
    labels.map(async (label) => {
      await octokit.rest.issues.createLabel({
        owner,
        repo,
        ...label,
      })
      console.log(
        chalkPipe('green.bold')(
          `✅️  success: ${owner}/${repo} => createLabel: ${label.name}`
        )
      )
    })
  } catch (error) {
    console.log(chalkPipe('red.bold')(`❎️  error: ${owner}/${repo} => createLabel`))
    // console.log(chalkPipe('white.italic')(error))
  }
}
// - Or `listLabelsForRepo` then create a migration script instead.
Or `listLabelsForRepo` then create a migration script instead.
Or ` listLabelsForRepo ` then create a migration script instead .
async function createLabels({ owner, repo }) {
  try {
    labels.map(async (label) => {
      await octokit.rest.issues.createLabel({
        owner,
        repo,
        ...label,
      })
      console.log(
        chalkPipe('green.bold')(
          `✅️  success: ${owner}/${repo} => createLabel: ${label.name}`
        )
      )
    })
  } catch (error) {
    console.log(chalkPipe('red.bold')(`❎️  error: ${owner}/${repo} => createLabel`))
  }
}
async function createLabels ( { owner , repo } ) { try { labels . map ( async ( label ) => { await octokit . rest . issues . createLabel ( { owner , repo , ... label , } ) console . log ( chalkPipe ( 'green.bold' ) ( ` ne r}/${ r po } => be l.nam e }` ) ) } ) } catch ( error ) { console . log ( chalkPipe ( 'red.bold' ) ( ` ne r}/${ r po } => } }
Or `listLabelsForRepo` then create a migration script instead.
Or ` listLabelsForRepo ` then create a migration script instead .
// console.log(chalkPipe('white.italic')(error))