Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the ProbotOctokit.defaults() initialization with hotfix #847

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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