initial commit of action

This commit is contained in:
Sebastian Rollen
2021-06-28 10:06:44 -04:00
commit 1b055e6e6a
355 changed files with 77131 additions and 0 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;