Probot: Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17

Created on 17 Feb 2020  路  3Comments  路  Source: probot/probot

Creating a new app following the documentation and using npx (with the basic Typescript template option):

npx create-probot-app my-first-app

Once I run the app, I get a deprecation warning:

Deprecation: [@octokit/rest] Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)
at authenticationPlugin (/home/x/my-first-app/node_modules/@octokit/rest/plugins/authentication/index.js:58:5)
at /home/x/my-first-app/node_modules/@octokit/rest/lib/constructor.js:26:37
at Array.forEach ()
at new Octokit (/home/x/my-first-app/node_modules/@octokit/rest/lib/constructor.js:26:11)
at Object.GitHubAPI (/home/x/my-first-app/node_modules/probot/lib/github/index.js:21:19)
at cache.wrap.ttl (/home/x/my-first-app/node_modules/probot/lib/application.js:231:102)
at processTicksAndRejections (internal/process/task_queues.js:94:5) {
name: 'Deprecation'
}

wontfix

Most helpful comment

This issue will be resoled by https://github.com/probot/probot/pull/1134

All 3 comments

Thanks for opening this issue. A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines and explore other ways you can get involved.

This issue will be resoled by https://github.com/probot/probot/pull/1134

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings