-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Octokit deprecation warning #333
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Hey folks 👋 I'm seeing a deprecation warning for @octokit/rest.js when importing @actions/github. This looks to be the offending code (h/t @joshmgross):
toolkit/packages/github/src/github.ts
Line 12 in 432a78c
| import Octokit from '@octokit/rest' |
And the warning:
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
Looks like perfectly valid warning! cc-ing @gr2m for 👀
Additional context
@actions/github: 2.1.0
@octokit/rest: 16.43.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working