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

Commit

Permalink
fix: revert back get repo stats
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Sep 8, 2024
1 parent da62852 commit 6c6c3fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/account/repo/checks/[id]/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default async function Page({ params }) {
<Form id={id} />
</Title>

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

<ActionPanel>
<FormBadge id={id} src={badgeSrc} />
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/auth/[...nextauth]/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const authOptions = {
clientSecret: process.env.GITHUB_SECRET,
authorization: {
params: {
scope: "read:user user:email read:project",
scope: "read:user user:email public_repo read:project",
},
},
}),
Expand Down
4 changes: 2 additions & 2 deletions src/utils/github/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default async function getAllRepoData(url, token) {
communityMetrics: (await getCommunityMetricsApi(url, token)).data,
labels: (await getLabelsApi(url, token)).data,
projects: (await getProjectsApi(url, token)).data,
// referrers: (await getReferrersApi(url, token)).data,
// views: (await getViewsApi(url, token)).data,
referrers: (await getReferrersApi(url, token)).data,
views: (await getViewsApi(url, token)).data,
};
}

0 comments on commit 6c6c3fe

Please sign in to comment.