X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_common%2Fgitea.js;h=d6fe53750eb18be63e80d417d9280e225792f507;hb=b1d3b44f966332434d8ec49b2a0df569e9bf8c16;hp=425d7d7e005f4bf0d09fead755e82d16780b9cc6;hpb=aa8e5f6bc399fd86af5b1cb15820a32974343764;p=webi-installers%2F.git diff --git a/_common/gitea.js b/_common/gitea.js index 425d7d7..d6fe537 100644 --- a/_common/gitea.js +++ b/_common/gitea.js @@ -15,7 +15,9 @@ function getAllReleases(request, owner, repo, baseurl) { if (!baseurl) { return Promise.reject('missing baseurl'); } - return ghRelease(request, owner, repo, baseurl + '/api/v1').then(function (all) { + return ghRelease(request, owner, repo, baseurl + '/api/v1').then(function ( + all + ) { return all; }); } @@ -23,9 +25,15 @@ function getAllReleases(request, owner, repo, baseurl) { module.exports = getAllReleases; if (module === require.main) { - getAllReleases(require('@root/request'), 'root', 'serviceman', 'https://git.rootprojects.org').then( + getAllReleases( + require('@root/request'), + 'coolaj86', + 'go-pathman', + 'https://git.coolaj86.com' + ).then( + //getAllReleases(require('@root/request'), 'root', 'serviceman', 'https://git.rootprojects.org').then( function (all) { - console.log(JSON.stringify(all, null, 2)); + console.info(JSON.stringify(all, null, 2)); } ); }