diff --git a/.env.sample b/.env.sample index 8e56d94a..bda81256 100644 --- a/.env.sample +++ b/.env.sample @@ -30,6 +30,7 @@ SLACK_VERIFICATION_TOKEN=PLxk6OlXXXXXVj3YYYY SLACK_APP_ID=A0XXXXXXX GOOGLE_ANALYTICS_ID= BUGSNAG_KEY= +GITHUB_ACCESS_TOKEN= # AWS credentials (optional in dev) AWS_ACCESS_KEY_ID=notcheckedindev diff --git a/server/routes.js b/server/routes.js index 303d4b00..3d51d4ae 100644 --- a/server/routes.js +++ b/server/routes.js @@ -84,7 +84,8 @@ router.get('/integrations/:slug', async ctx => { router.get('/integrations', ctx => renderpage(ctx, )); router.get('/changelog', async ctx => { const data = await fetch( - 'https://api.github.com/repos/outline/outline/releases' + `https://api.github.com/repos/outline/outline/releases?access_token=${process + .env.GITHUB_ACCESS_TOKEN || ''}` ); const releases = await data.json(); return renderpage(ctx, );