Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@octokit/plugin-enterprise-server
Advanced tools
Octokit plugin for GitHub Enterprise Server REST APIs
Octokit plugin for GitHub Enterprise Server REST APIs
@octokit/rest
and the @octokit/plugin-rest-endpoint-methods
plugin it's using internally do not include methods for Enterprise Administration as they do not exist on https://api.github.com. This plugin adds endpoint methods for very GitHub Enterprise Server version that is currently supported.
Besides the admin-specific endpoints, there are differences between api.github.com
and each GitHub Enterprise Server version. Instead of loading @octokit/plugin-rest-endpoint-methods
you can optionally add all endpoint methods for each GitHub Enterprise Server version, including the admin endpoints.
Browsers |
Load
|
---|---|
Node |
Install with
|
const OctokitEnterprise220 = Octokit.plugin(enterpriseServer220Admin);
const octokit = new OctokitEnterprise220({
auth: "secret123",
baseUrl: "https://github.acme-inc.com/api/v3",
});
octokit.enterpriseAdmin.createUser({
username: "octocat",
email: "octocat@acme-inc.com",
});
The list of currently exported plugins are
enterpriseServer222Admin
enterpriseServer222
enterpriseServer221Admin
enterpriseServer221
enterpriseServer220Admin
enterpriseServer220
enterpriseServer219Admin
enterpriseServer219
The route definitions for the currently supported GitHub Enterprise versions are build automatically from @octokit/routes
. Each time there is a new @octokit/routes
release, the .github/workflows/routes-update.yml
workflow is triggered. If an update to routes.json
is found, a pull request is created.
FAQs
Octokit plugin for GitHub Enterprise Server REST APIs
The npm package @octokit/plugin-enterprise-server receives a total of 3,846 weekly downloads. As such, @octokit/plugin-enterprise-server popularity was classified as popular.
We found that @octokit/plugin-enterprise-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.