-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Build failing due to octokit plugin-rest-endpoint #39712
Comments
Issue fixed on plugin side. octokit/plugin-rest-endpoint-methods.js#172 Forthcoming from contributor is: 'post-mortem to explain what happened, how I'll make sure it won't happen again.' |
Here is the promised post-mortem: I'll also look through your code base to see how you use |
I looked through your code and I think you should use The changes will look like this. Instead of gh.pulls.get({ pull_number: +process.env.SOURCE_ISSUE, owner: "microsoft", repo: "TypeScript" })) the code will be // https://docs.github.com/en/rest/reference/pulls#get-a-pull-request
gh.request('GET /repos/:owner/:repo/pulls/:pull_number', { pull_number: +process.env.SOURCE_ISSUE, owner: "microsoft", repo: "TypeScript" }))
I'd be happy to send a pull request if you'd like that. One thing I'd like to do first though is to update the type definitions for the paths from I promise to release that change as a breaking change in |
Note:
plugin-rest-endpoint-methods.js
, released 3hrs ago.Filing an issue here as well so that it can be tracked if anyone else experiences the same.
Steps:
Search Terms: octokit, build failing
Affected Versions: 3.9 - 4.0 fail (3.8.2 succeeded)
Errors
The text was updated successfully, but these errors were encountered: