Prepare 1.8.9 release
Some checks failed
Test / check_pr (push) Has been cancelled

This commit is contained in:
Nick Cipollo
2021-09-12 18:09:12 -04:00
parent e97ceb3e08
commit 238505795d
629 changed files with 288215 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
import ENDPOINTS from "./generated/endpoints";
import { VERSION } from "./version";
import { endpointsToMethods } from "./endpoints-to-methods";
export function restEndpointMethods(octokit) {
const api = endpointsToMethods(octokit, ENDPOINTS);
return {
rest: api,
};
}
restEndpointMethods.VERSION = VERSION;
export function legacyRestEndpointMethods(octokit) {
const api = endpointsToMethods(octokit, ENDPOINTS);
return {
...api,
rest: api,
};
}
legacyRestEndpointMethods.VERSION = VERSION;