This commit is contained in:
Enok
2019-10-10 18:04:43 +08:00
parent 16a2f295e8
commit c2d26c1dff
534 changed files with 85643 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
module.exports = octokitRestApiEndpoints;
const ROUTES = require("./routes.json");
function octokitRestApiEndpoints(octokit) {
// Aliasing scopes for backward compatibility
// See https://github.com/octokit/rest.js/pull/1134
ROUTES.gitdata = ROUTES.git;
ROUTES.authorization = ROUTES.oauthAuthorizations;
ROUTES.pullRequests = ROUTES.pulls;
octokit.registerEndpoints(ROUTES);
}
File diff suppressed because it is too large Load Diff