3 var ghRelease = require('./github.js');
6 * Gets the releases for 'ripgrep'. This function could be trimmed down and made
7 * for use with any github release.
10 * @param {string} owner
11 * @param {string} repo
12 * @returns {PromiseLike<any> | Promise<any>}
14 function getAllReleases(request, owner, repo, baseurl) {
16 return Promise.reject('missing baseurl');
18 return ghRelease(request, owner, repo, baseurl + '/api/v1').then(function (
25 module.exports = getAllReleases;
27 if (module === require.main) {
29 require('@root/request'),
32 'https://git.coolaj86.com'
34 //getAllReleases(require('@root/request'), 'root', 'serviceman', 'https://git.rootprojects.org').then(
36 console.info(JSON.stringify(all, null, 2));