Generate and log contribution data
This commit is contained in:
parent
9fbf6c541f
commit
bffaae064c
10
index.js
10
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 }));
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user