diff --git a/.env.example b/.env.example index 6a57240..ef7257e 100644 --- a/.env.example +++ b/.env.example @@ -1 +1 @@ -GITHUB_TOKEN= \ No newline at end of file +APP_GITHUB_TOKEN= \ No newline at end of file diff --git a/README.md b/README.md index 23c3c6e..d321c18 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ involved with and contribute to the devICT community. ### Configuration -- `GITHUB_TOKEN`, required for making GitHub API calls. +- `APP_GITHUB_TOKEN`, required for making GitHub API calls. - Generate one from your [GitHub settings](https://github.com/settings/tokens?type=beta). - Does not need any special permissions, it only accesses public information. diff --git a/routes/index.tsx b/routes/index.tsx index 5697396..d62d0fb 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -14,7 +14,7 @@ const DEVICT_REPOS: string[] = [ ]; export default async function Home() { - const ghToken = Deno.env.get("GITHUB_TOKEN"); + const ghToken = Deno.env.get("APP_GITHUB_TOKEN"); assert(ghToken); const contributors = await fetchGitHubContributors(ghToken, DEVICT_REPOS); diff --git a/routes/projects.tsx b/routes/projects.tsx index 6ed9831..5f57f99 100644 --- a/routes/projects.tsx +++ b/routes/projects.tsx @@ -26,7 +26,7 @@ const COMMUNITY_REPOS: string[] = [ export default async function Home() { const ALL_REPOS = DEVICT_REPOS.concat(COMMUNITY_REPOS); - const ghToken = Deno.env.get("GITHUB_TOKEN"); + const ghToken = Deno.env.get("APP_GITHUB_TOKEN"); assert(ghToken); const issues = await getHelpWantedIssues({