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

feat: set endpoint methods on octokit.rest.*. octokit.* is still set, but no longer documented, and will be deprecated in future #365

Merged
merged 1 commit into from
Mar 25, 2021

Conversation

gr2m
Copy link
Contributor

@gr2m gr2m commented Mar 25, 2021

This is in preparation for https://github.com/octokit/octokit.js.

octokit.repos.get() is now octokit.rest.repos.get(), to make clear that the REST API is used under the hood. We will focus on the plugin ecosystem in future, and having the .rest.* namespace will prevent naming conflicts.

We will continue to set the endpoint methods directly on octokit for the foreseeable time though, as @octokit/rest is used so widely.

@gr2m gr2m added the Type: Feature New feature or request label Mar 25, 2021
…set, but no longer documented, and will be deprecated in future
@gr2m gr2m merged commit 6cb8fa8 into master Mar 25, 2021
@gr2m gr2m deleted the octokit.rest branch March 25, 2021 23:46
@github-actions
Copy link
Contributor

🎉 This PR is included in version 4.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

🎉 This PR is included in version 4.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant