Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions src/lib/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ export async function getGithubProjectDirectory(): Promise<GitHubProjectDirector
}

async function getOrganization() {
"use cache"

cacheLife("hours")
cacheTag("github-organization")

const response = await fetch(
`${GITHUB_API_BASE}/orgs/${GITHUB_ORGANIZATION}`,
{
Expand All @@ -163,11 +158,6 @@ async function getOrganization() {
}

async function getPublicRepositories() {
"use cache"

cacheLife("hours")
cacheTag("github-repositories")

const repositories: GitHubRepository[] = []

for (let page = 1; ; page += 1) {
Expand All @@ -193,11 +183,6 @@ async function getPublicRepositories() {
}

async function getRepositoryContributors(repositoryName: string) {
"use cache"

cacheLife("hours")
cacheTag("github-contributors", `github-contributors:${repositoryName}`)

const response = await fetch(
`${GITHUB_API_BASE}/repos/${GITHUB_ORGANIZATION}/${encodeURIComponent(repositoryName)}/contributors?per_page=100`,
{
Expand Down