slackMessage = (queue, type) => {
  const report = []

  report.push({
    type: "divider",
  })

  report.push({
    type: "section",
    text: {
      type: "mrkdwn",
      text: `[${queue.length}] ${messages[type].found}`,
    },
  })

  let text = ``

  queue.map((issue, i) => {
    text += `${i + 1 + `. `}<${issue.url}|${issue.title}>\n`
  })

  if (text === ``) {
    text = messages[type].empty
  }

  report.push({
    type: "section",
    text: {
      type: "mrkdwn",
      text,
    },
  })

  return report
}
Format a list of issues to Slack's block kit
@see https://api.slack.com/tools/block-kit-builder
@param queue
@param type - Which type of issue. stale | closed