code: function writeChangelog (options, done) {
    options.repoType = options.repoType || 'github'
  
    log('Using repo type: ', colors.magenta(options.repoType))
  
    const pkg = require(process.cwd() + '/package')
  
    const opts = {
      log: log,
      repository: pkg.repository.url,
      version: options.version
    }
  
    // Github uses "commit", Bitbucket Enterprise uses "commits"
    if (options.repoType === 'bitbucket') {
      opts.commitLink = createBitbucketEnterpriseCommitLink()
    }
  
    return require('nf-conventional-changelog')(opts, function (err, clog) {
      if (err) {
        throw new Error(err)
      } else {
        require('fs').writeFileSync(process.cwd() + '/CHANGELOG.md', clog)
        return done && typeof done === 'function' && done()
      }
    })
  }
docs: Output change information from git commits to CHANGELOG.md
  
  @param options - {Object} that contains all the options of the changelog writer
  - repoType: The {String} repo type (github or bitbucket) of the project (default to `"github"`),
  - version: The {String} semantic version to add a change log for
  @param done - {Function} that gets called when the changelog write task has completed
  
  @return `Function`.