Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

17 lines (17 sloc)
727 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ENDPOINTS from "./generated/endpoints"; | |
import { VERSION } from "./version"; | |
import { endpointsToMethods } from "./endpoints-to-methods"; | |
/** | |
* This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary | |
* goal is to rebuild @octokit/rest on top of @octokit/core. Once that is | |
* done, we will remove the registerEndpoints methods and return the methods | |
* directly as with the other plugins. At that point we will also remove the | |
* legacy workarounds and deprecations. | |
* | |
* See the plan at | |
* https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1 | |
*/ | |
export function restEndpointMethods(octokit) { | |
return endpointsToMethods(octokit, ENDPOINTS); | |
} | |
restEndpointMethods.VERSION = VERSION; |