Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 6c6c3fe

Browse files
committed
fix: revert back get repo stats
1 parent da62852 commit 6c6c3fe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/app/account/repo/checks/[id]/page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default async function Page({ params }) {
5252
<Form id={id} />
5353
</Title>
5454

55-
{/* {repository.githubResponses[0].referrers?.length &&
55+
{repository.githubResponses[0].referrers?.length &&
5656
repository.githubResponses[0].views.views ? (
5757
<div className="flex flex-col md:flex-row gap-4 mt-4">
5858
<Card className="basis-1/2 border rounded-lg shadow-sm border-gray-700 bg-gray-800 text-gray-200">
@@ -131,7 +131,7 @@ export default async function Page({ params }) {
131131
<Alert>
132132
You do not have permission to see the analytics for this repo
133133
</Alert>
134-
)} */}
134+
)}
135135

136136
<ActionPanel>
137137
<FormBadge id={id} src={badgeSrc} />

src/app/api/auth/[...nextauth]/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const authOptions = {
1313
clientSecret: process.env.GITHUB_SECRET,
1414
authorization: {
1515
params: {
16-
scope: "read:user user:email read:project",
16+
scope: "read:user user:email public_repo read:project",
1717
},
1818
},
1919
}),

src/utils/github/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default async function getAllRepoData(url, token) {
1919
communityMetrics: (await getCommunityMetricsApi(url, token)).data,
2020
labels: (await getLabelsApi(url, token)).data,
2121
projects: (await getProjectsApi(url, token)).data,
22-
// referrers: (await getReferrersApi(url, token)).data,
23-
// views: (await getViewsApi(url, token)).data,
22+
referrers: (await getReferrersApi(url, token)).data,
23+
views: (await getViewsApi(url, token)).data,
2424
};
2525
}

0 commit comments

Comments
 (0)