diff --git a/app/favicon.ico b/app/favicon.ico index 718d6fe..73ef88d 100644 Binary files a/app/favicon.ico and b/app/favicon.ico differ diff --git a/app/page.tsx b/app/page.tsx index d7a8f68..40b1583 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -11,8 +11,6 @@ export default async function Home() { const session = await auth(); if (!session?.user) return null; - console.log(session); - return (
前年と比較して - {( - ((data.totalCommitCount - - data.previousYearStats.totalCommitCount) / - data.previousYearStats.totalCommitCount) * - 100 - ).toFixed(2)} + {calculateChangeRate( + data.previousYearStats.totalCommitCount, + data.totalCommitCount, + )} % 増加しました。
@@ -123,12 +122,10 @@ export const OverView: FC前年と比較して - {( - ((data.closedIssuesAssigned - - data.previousYearStats.closedIssuesAssignedCount) / - data.previousYearStats.closedIssuesAssignedCount) * - 100 - ).toFixed(2)} + {calculateChangeRate( + data.previousYearStats.closedIssuesAssignedCount, + data.closedIssuesAssigned, + )} % 増加しました。
@@ -148,12 +145,10 @@ export const OverView: FC前年と比較して - {( - ((data.openedPullRequests - - data.previousYearStats.openedPullRequests) / - data.previousYearStats.openedPullRequests) * - 100 - ).toFixed(2)} + {calculateChangeRate( + data.previousYearStats.openedPullRequests, + data.openedPullRequests, + )} % 増加しました。
@@ -173,12 +168,10 @@ export const OverView: FC前年と比較して - {( - ((data.reviewedPullRequests - - data.previousYearStats.reviewedPullRequests) / - data.previousYearStats.reviewedPullRequests) * - 100 - ).toFixed(2)} + {calculateChangeRate( + data.previousYearStats.reviewedPullRequests, + data.reviewedPullRequests, + )} % 増加しました。
diff --git a/lib/auth.ts b/lib/auth.ts index 8e76153..305d4c8 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -7,7 +7,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth({ GitHub({ authorization: { param: { - scope: "repo read:user", + scope: "repo", }, }, }),