upse the correct way of giving auth to Octokit

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-02-06 23:16:01 +01:00
parent 303079ea7d
commit 6d62bb978b
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ log.setDefaultLevel(log.levels[LOG_LEVEL])
const builds = new Builds(DB_PATH, DB_SAVE_INTERVAL)
/* necessary to post and update comments */
const gh = new Octokit()
gh.authenticate({type: 'token', token: GH_TOKEN})
const gh = new Octokit({auth: `token ${GH_TOKEN}`})
/* set valid repo names */
const schema = Schema(GH_REPO_NAMES)