Closes #827 – Add optional github access token
This commit is contained in:
parent
80a16c8af2
commit
e08cb10b7f
|
@ -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
|
||||
|
|
|
@ -84,7 +84,8 @@ router.get('/integrations/:slug', async ctx => {
|
|||
router.get('/integrations', ctx => renderpage(ctx, <Integrations />));
|
||||
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, <Changelog releases={releases} />);
|
||||
|
|
Reference in New Issue