upse the correct way of giving auth to Octokit
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
303079ea7d
commit
6d62bb978b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue