mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-12 15:43:06 +08:00
12 lines
344 B
JavaScript
12 lines
344 B
JavaScript
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 {
|
|
...api,
|
|
rest: api,
|
|
};
|
|
}
|
|
restEndpointMethods.VERSION = VERSION;
|