hunk.code_window: bundler.bundle()
     .pipe(disc())
     .pipe(prepend('---\nlayout: false\n---\n'))
     .pipe(fs.createWriteStream(outputPath))
     .on('error', (err) => {
       throw err
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit:   .pipe(replace('http://', 'https://', { limit: 1 }))
  
hunk.file_path: bin/disc.js
hunk.type: add
file: const execa = require('execa')
  const fs = require('fs')
  
  const README_FILE_NAME = 'README.md'
  
  async function updateContributorsListInReadme () {
    const readme = fs.readFileSync(README_FILE_NAME, 'utf-8')
    const args = [
      '--owner', 'transloadit',
      '--repo', 'uppy',
      '--cols', '6',
      '--format', 'md',
      '--showlogin', 'true',
      '--sortOrder', 'desc'
    ]
  
    if (process.env.GITHUB_TOKEN) {
      args.push('--authToken', process.env.GITHUB_TOKEN)
    }
  
    const { stdout } = await execa('githubcontrib', args, { encoding: 'utf-8' })
    console.log(stdout)
    if (stdout === '' || stdout === null) {
      console.log('Empty response from githubcontrib. GitHub’s rate limit?')
      return
    }
  
    const readmeWithUpdatedContributors = readme.replace(
      /<!--contributors-->[\s\S]+<!--\/contributors-->/,
      `<!--contributors-->\n${stdout}\n<!--/contributors-->`
    )
    fs.writeFileSync(README_FILE_NAME, readmeWithUpdatedContributors)
  }
  
  updateContributorsListInReadme()
  