From 5ab26dbb36bd454cda693d19cd84fbadff580a77 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 2 Nov 2023 04:21:28 +0000 Subject: [PATCH] test(git-tag): show output from simpler, better targeted repos --- _common/git-tag.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/_common/git-tag.js b/_common/git-tag.js index faf3b17..38c4fe4 100644 --- a/_common/git-tag.js +++ b/_common/git-tag.js @@ -130,14 +130,20 @@ module.exports = getAllReleases; if (module === require.main) { (async function main() { - let all = await getAllReleases('https://github.com/dense-analysis/ale.git'); - // for stderr - let sample = JSON.stringify(all.releases[0], null, 2); - console.error('Sample:'); - console.error(sample); + let testRepos = [ + // just a few tags, and a different HEAD + 'https://github.com/tpope/vim-commentary.git', + // no tags, just HEAD + 'https://github.com/ziglang/zig.vim.git', + // many, many tags + //'https://github.com/dense-analysis/ale.git', + ]; + for (let url of testRepos) { + let all = await getAllReleases(url); - all = require('../_webi/normalize.js')(all); - console.info(JSON.stringify(all, null, 2)); + all = require('../_webi/normalize.js')(all); + console.info(JSON.stringify(all, null, 2)); + } })() .then(function () { process.exit(0);