Skip to content

Octokit deprecation warning #333

@JasonEtco

Description

@JasonEtco

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):

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions