code: function fetch(cb) {
    let resp = ''
    let json = {}
  
    process.env.EDAM_COMPLETE && console.log(' Get branches list: %s', url)
    https
      .request(
        Object.assign(
          {
            headers: {
              'User-Agent':
                'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'
            }
          },
          u.parse(url)
        ),
        function(income) {
          income.on('data', function(chunk) {
            resp += chunk.toString()
          })
          income
            .on('end', function() {
              json = JSON.parse(resp)
              process.env.EDAM_COMPLETE && console.log('Response: \n', json)
  
              let transform = function (branch) {
                return REPO + '?checkout=' + branch
              }
              cb(
                json.map(function(x) {
                  return transform(x.name)
                })
              )
            })
            .on('error', console.error)
        }
      )
      .end()
  }
docs: https://github.com/imcuttle/edam-vendor.git