dessant / lock-threads

GitHub Action that locks closed issues, pull requests and discussions after a period of inactivity
https://github.com/marketplace/actions/lock-threads
MIT License
313 stars 34 forks source link

const Octokit is deprecated #17

Closed MauricioFauth closed 4 years ago

MauricioFauth commented 4 years ago

https://github.com/phpmyadmin/phpmyadmin/runs/793102151?check_suite_focus=true

Run dessant/lock-threads@v2
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
netniV commented 4 years ago

This issue is actually caused by the GitHub Toolkit action, see https://github.com/actions/toolkit/issues/333 and was resolved in release 2.1.1 (See https://github.com/actions/toolkit/blob/master/packages/github/RELEASES.md).

I've created a PR to update the dependancy for it https://github.com/dessant/lock-threads/pull/18