From 22f7ad4688000a337d913c166a1dcd52ed570ede Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Fri, 6 Apr 2018 12:37:53 +0200 Subject: [PATCH] rename TOKEN to GH_TOKEN. closes #6 --- bin/update-server.js | 2 +- test/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/update-server.js b/bin/update-server.js index eb6f43ef..a03ed3e3 100755 --- a/bin/update-server.js +++ b/bin/update-server.js @@ -14,7 +14,7 @@ const assert = require('assert') // Args // -const { TOKEN: token, REDIS_URL: redisUrl, PORT: port = 3000 } = process.env +const { GH_TOKEN: token, REDIS_URL: redisUrl, PORT: port = 3000 } = process.env assert(token, 'TOKEN required') // diff --git a/test/index.js b/test/index.js index 432b6075..e7e0bfad 100644 --- a/test/index.js +++ b/test/index.js @@ -4,7 +4,7 @@ const { test } = require('tap') const fetch = require('node-fetch') const Updates = require('..') -const { TOKEN: token } = process.env +const { GH_TOKEN: token } = process.env const cache = 100