text: const {
    READY_FOR_REVIEW,
    REJECTED,
    REVIEW_REQUESTED,
    IN_PROGRESS,
    SECURITY
  } = require('./utils/constants')
  
  module.exports = async (github, owner, repo, payload) => {
    const labels = {
      [READY_FOR_REVIEW]: 'fef2c0',
      [REJECTED]: 'e11d21',
      [REVIEW_REQUESTED]: 'fef2c0',
      [IN_PROGRESS]: 'fef2c0',
      [SECURITY]: 'e11d21'
    }
  
    Object.keys(labels).forEach(async name => {
      try {
        await github.issues.createLabel({
          owner,
          repo,
          name,
          color: labels[name]
        })
      } catch (error) {}
    })
  }
  