content/initial-pr.js
function hasLockFileText (files) {
  if (!files) return
  const lockFiles = ['package-lock.json', 'npm-shrinkwrap.json', 'yarn.lock'].filter((key) => {
    if (_.isArray(files[key]) && files[key].length) {
      return true
    }
    if (files[key] === true) {
      return true
    }
    return false
  })
  if (lockFiles.length === 0) return
  if (lockFiles.includes('npm-shrinkwrap.json')) {
    return md`⚠️ Greenkeeper has found a ${md.code('npm-shrinkwrap.json')} file in this repository. Please use [greenkeeper-lockfile](https://github.com/greenkeeperio/greenkeeper-lockfile) to make sure this gets updated as well.`
  }
  const lockFile = lockFiles[0]
  return md`🔒 Greenkeeper has found a ${md.code(lockFile)} file in this repository. Greenkeeper supports lockfile updates for public packages. If you use private packages in your repository, please use [greenkeeper-lockfile](https://github.com/greenkeeperio/greenkeeper-lockfile) to make sure these can get updated as well.`
}
function hasLockFileText (files) {
  if (!files) return
  const lockFiles = ['package-lock.json', 'npm-shrinkwrap.json', 'yarn.lock'].filter((key) => {
    if (_.isArray(files[key]) && files[key].length) {
      return true
    }
    if (files[key] === true) {
      return true
    }
    return false
  })
  if (lockFiles.length === 0) return
  if (lockFiles.includes('npm-shrinkwrap.json')) {
    return md`⚠️ Greenkeeper has found a ${md.code('npm-shrinkwrap.json')} file in this repository. Please use [greenkeeper-lockfile](https://github.com/greenkeeperio/greenkeeper-lockfile) to make sure this gets updated as well.`
  }
  const lockFile = lockFiles[0]
  return md`🔒 Greenkeeper has found a ${md.code(lockFile)} file in this repository. Greenkeeper supports lockfile updates for public packages. If you use private packages in your repository, please use [greenkeeper-lockfile](https://github.com/greenkeeperio/greenkeeper-lockfile) to make sure these can get updated as well.`
}
needs to handle files as an array of arrays!