code: function getPrivateRepo(gitUrl, token, callback) {
    var apiUrl = gitUrl.replace(/^(git:\/\/[^\/]+\/)([^\.]+)\.git/, 'https://api.github.com/repos/$2/contents/package.json')
    request
      .get(apiUrl)
      .set('Authorization', `token ${token}`)
      .end(callback)
  }
docs: uses token from https://help.github.com/articles/creating-an-access-token-for-command-line-use/