exports.reduceToList = array => {
  return array.reduce((prev, value, i) => {
    if (i + 1 === array.length) {
      return prev + ` and ${value}`
    } else if (i === 0) {
      return prev + `${value}`
    } else {
      return prev + `, ${value}`
    }
  }, '')
}

exports.addAt = str => {
  if (!str.startsWith('@')) return `@${str}`
  return str
}

exports.stripAt = str => {
  if (str.startsWith('@')) return str.split('@')[1]
  return str
}

@@ -344,24 +344,40 @@
 turn str%0A%7D%0A%0A
+const stripAt = 
 exports.stri
@@ -442,24 +442,326 @@
 ('@')%5B1%5D%0A  return str%0A%7D%0A
+%0Aexports.assignFlow = (%7B autoAssign %7D, author) =%3E %7B%0A  if (autoAssign === true) %7B%0A    return %7B assignee: author %7D%0A  %7D else if (typeof autoAssign === 'string') %7B%0A    return %7B assignee: autoAssign %7D%0A  %7D else if (Array.isArray(autoAssign)) %7B%0A    return %7B assignees: autoAssign.map(n =%3E stripAt(n)) %7D%0A  %7D%0A%7D%0A

Move some stuff to helpers