From e08cb10b7f30d90d3c8bfe1f1254f2871162e96f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 24 Dec 2018 10:36:17 -0800 Subject: [PATCH] =?UTF-8?q?Closes=20#827=20=E2=80=93=20Add=20optional=20gi?= =?UTF-8?q?thub=20access=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.sample | 1 + server/routes.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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, );