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));
}
release['assets'].forEach((asset) => {
const name = asset['name'];
all.releases.push({
+ name: name,
version: release['tag_name'], // TODO tags aren't always semver / sensical
lts: /\b(lts)\b/.test(release['tag_name']),
channel: !release['prerelease'] ? 'stable' : 'beta',
--- /dev/null
+'use strict';
+
+var github = require('../_common/gitea.js');
+var owner = 'coolaj86';
+var repo = 'go-pathman';
+var baseurl = 'https://git.coolaj86.com'
+
+module.exports = function (request) {
+ return github(request, owner, repo, baseurl).then(function (all) {
+ return all;
+ });
+};
+
+if (module === require.main) {
+ module.exports(require('@root/request')).then(function (all) {
+ console.log(JSON.stringify(all, null, 2));
+ });
+}