lib/vcs/github-enterprise.js
function getFetchOpts (config) {
  const readToken = config.computed.vcs.auth.readToken
  const headers = {}
  logger.log(`RO_GH_TOKEN = [${readToken}]`)
  if (readToken) {
    headers['Authorization'] = `token ${readToken}`
  }
  return {headers}
}
function getFetchOpts (config) {
  const readToken = config.computed.vcs.auth.readToken
  const headers = {}
  logger.log(`RO_GH_TOKEN = [${readToken}]`)
  if (readToken) {
    headers['Authorization'] = `token ${readToken}`
  }
  return {headers}
}
function getFetchOpts ( config ) { const readToken = config . computed . vcs . auth . readToken const headers = { } logger . log ( ` ${ readToken } ` ) if ( readToken ) { headers [ 'Authorization' ] = ` ${ readToken } ` } return { headers } }
Get fetch options
@param {Config} config - the pr-bumper config object
@returns {Object} the options
Get fetch options