Skip to content

Commit

Permalink
added the data instead of everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Sir. Automation committed Feb 20, 2024
1 parent c88316b commit 42d274a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/get_commits.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@ async function getDetailedCommits(reposWithCommits) {
detailedMap[repoName] = [];
for(const com of reposWithCommits[repoName]) {
const ref = com.sha;
console.log({repoName,ref});
const detailed = await octokit.request(`GET /repos/${repoName}/commits/${ref}`, {
headers: {
'X-GitHub-Api-Version': '2022-11-28',
"Accept": "application/vnd.github+json"
}
});
detailedMap[repoName].push(await detailed);
detailedMap[repoName].push(await detailed.data);
}
}
return detailedMap;
Expand Down Expand Up @@ -96,7 +95,7 @@ for(const repoName in latestWithDetail) {
simpleCommits.push(commit);
}
}
console.log({latestWithDetail,refToRepo});
console.log({latestWithDetail,zero:latestWithDetail["Astisme/astisme"][0],refToRepo});

const sortedCommits = simpleCommits
.sort((a,b) => a.commit.author.date - b.commit.author.date)
Expand Down

0 comments on commit 42d274a

Please sign in to comment.