Skip to content

Conversation

skywarth
Copy link

Initialization of Probot instance with Octokit parameter is corrected per issue: probot/probot#2039 (comment)

I propose this PR in order to address this issue, even though it's a hotfix.

Initialization of Probot instance with Octokit parameter is corrected per issue: probot/probot#2039 (comment)
@skywarth
Copy link
Author

Any maintainers/reviewers to take a look at it please? Thank you.

@@ -5,6 +5,8 @@ import nock from "nock";
// Requiring our app implementation
import myProbotApp from "../src/index.js";
import { Probot, ProbotOctokit } from "probot";
// Requiring the OctokitOptions for ProbotOctokit.defaults()
import {OctokitOptions} from "probot/lib/types";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't use internal entrypoints like this.

TypeScript can infer these types anyways.

In a future major version, these won't be accesssible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants