From bffaae064c789d45ac4b071391009f02dd441b09 Mon Sep 17 00:00:00 2001 From: Garret Alfert Date: Thu, 7 Jan 2021 22:59:21 +0100 Subject: [PATCH] Generate and log contribution data --- index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.js b/index.js index 64e7152..8b7bf23 100644 --- a/index.js +++ b/index.js @@ -138,3 +138,13 @@ async function generateContributionData(reviews, Contributor) { return contributionData; } +Promise.all([initializeKredits(), getAllReviews(repos, startDate, endDate)]).then((values) => { + const kredits = values[0]; + const reviews = values[1]; + + generateContributionData(reviews, kredits.Contributor).then(contributionData => { + console.log('contributions:'); + console.log(util.inspect(contributionData, { depth: 3, colors: true })); + }); +}); +