This repository was archived by the owner on Oct 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export default async function Page({ params }) {
52
52
< Form id = { id } />
53
53
</ Title >
54
54
55
- { /* { repository.githubResponses[0].referrers?.length &&
55
+ { repository . githubResponses [ 0 ] . referrers ?. length &&
56
56
repository . githubResponses [ 0 ] . views . views ? (
57
57
< div className = "flex flex-col md:flex-row gap-4 mt-4" >
58
58
< 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 }) {
131
131
< Alert >
132
132
You do not have permission to see the analytics for this repo
133
133
</ Alert >
134
- )} */ }
134
+ ) }
135
135
136
136
< ActionPanel >
137
137
< FormBadge id = { id } src = { badgeSrc } />
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const authOptions = {
13
13
clientSecret : process . env . GITHUB_SECRET ,
14
14
authorization : {
15
15
params : {
16
- scope : "read:user user:email read:project" ,
16
+ scope : "read:user user:email public_repo read:project" ,
17
17
} ,
18
18
} ,
19
19
} ) ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default async function getAllRepoData(url, token) {
19
19
communityMetrics : ( await getCommunityMetricsApi ( url , token ) ) . data ,
20
20
labels : ( await getLabelsApi ( url , token ) ) . data ,
21
21
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 ,
24
24
} ;
25
25
}
You can’t perform that action at this time.
0 commit comments