diff --git a/app/helpers/github.js b/app/helpers/github.js index 6f95415..3d5bd88 100644 --- a/app/helpers/github.js +++ b/app/helpers/github.js @@ -30,6 +30,11 @@ String.prototype.escape = function() { let client; if (typeof process.env.GITHUB_OAUTH_TOKEN !== "undefined") { + // new octokit({ + // auth: `token ${process.env.GITHUB_OAUTH_TOKEN}` + // }); + // https://github.com/octokit/rest.js/issues/1207 + octokit.authenticate({ type: "oauth", token: process.env.GITHUB_OAUTH_TOKEN diff --git a/package.json b/package.json index 70eae06..5a6facb 100755 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "dependencies": { "@babel/polyfill": "^7.2.5", "@inc/fastify-ws": "^1.1.0", - "@octokit/rest": "^16.13.0", + "@octokit/rest": "^16.13.1", "@slack/client": "^4.8.0", "app-root-path": "^2.1.0", "async": "^2.6.1", @@ -51,12 +51,12 @@ "@babel/plugin-proposal-throw-expressions": "7.2.0", "@babel/plugin-syntax-dynamic-import": "7.2.0", "@babel/plugin-syntax-import-meta": "7.2.0", - "@babel/preset-env": "^7.3.0", + "@babel/preset-env": "^7.3.1", "@babel/register": "^7.0.0", "@inc/eslint-config": "^1.1.2", "@inc/sasslint-config": "^1.1.2", "@lbry/color": "^1.1.0", - "@lbry/components": "^1.8.0", + "@lbry/components": "^1.8.1", "eslint": "^5.12.1", "husky": "^1.3.1", "nodemon": "^1.18.9",