Financial-Times / tako

🐙 A GitHub App that provides an API listing the repositories it is installed on.
MIT License
4 stars 0 forks source link

Using result.data.repositories is deprecated #134

Closed sjparkinson closed 5 years ago

sjparkinson commented 5 years ago

In upgrading to Probot v9 (and as a result octokit/rest to v16.23.2) there is the following deprecation notice when starting Tako.

10:13:03.458Z  INFO api: Registered the router
[...]
{ Deprecation: [@octokit/rest] "result.data.repositories" is deprecated. Use "result.data" instead
    at Array.get (/Users/samuel.parkinson/Repositories/Financial-Times/tako/node_modules/@octokit/rest/plugins/pagination/paginate.js:49:45)
    at github.paginate.response (/Users/samuel.parkinson/Repositories/Financial-Times/tako/src/repositories.js:21:29)
    at iterator.next.then.result (/Users/samuel.parkinson/Repositories/Financial-Times/tako/node_modules/@octokit/rest/plugins/pagination/paginate.js:78:40) name: 'Deprecation' }
stale[bot] commented 5 years ago

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