Skip to content

Commit

Permalink
removed useless log
Browse files Browse the repository at this point in the history
  • Loading branch information
Sir. Automation committed Feb 20, 2024
1 parent 012eb98 commit 3b57415
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/get_commits.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ async function getDetailedCommits(reposWithCommits) {
}
}
return detailedMap;

/*
"stats": {
"additions": 104,
"deletions": 4,
"total": 108
},
*/
}

async function getStarredByMe() {
Expand All @@ -72,6 +64,13 @@ async function getReadMe() {
}

function formatCommit(commit) {
/*
"stats": {
"additions": 104,
"deletions": 4,
"total": 108
},
*/
return commit;
}

Expand All @@ -91,7 +90,6 @@ const refToRepo = {};
const simpleCommits = [];
for(const repoName in latestWithDetail) {
for(const commit of latestWithDetail[repoName]) {
console.log(commit);
refToRepo[commit.sha] = repoName;
simpleCommits.push(commit);
}
Expand All @@ -103,6 +101,7 @@ const sortedCommits = simpleCommits
.slice(0, 10)
.map(a => latestWithDetail[refToRepo[a.sha]]);
//commit.message, commit.author.date, commit.html_url, +/-
console.log({latest:sortedCommits[0]});
const formattedCommits = formatAllCommits(sortedCommits);
//console.log({zero:formattedCommits[0],com:formattedCommits[0].commit});

Expand Down

0 comments on commit 3b57415

Please sign in to comment.