read contribution calendar from github api

This commit is contained in:
platane
2023-07-17 19:59:59 +02:00
committed by Platane
parent 4489504b7a
commit ebeb59fced
15 changed files with 130 additions and 2689 deletions

View File

@@ -12,10 +12,11 @@ export const generateContributionSnake = async (
format: "svg" | "gif";
drawOptions: DrawOptions;
animationOptions: AnimationOptions;
} | null)[]
} | null)[],
options: { githubToken: string }
) => {
console.log("🎣 fetching github user contribution");
const cells = await getGithubUserContribution(userName);
const cells = await getGithubUserContribution(userName, options);
const grid = userContributionToGrid(cells);
const snake = snake4;