Skip to content

Commit

Permalink
fix: aliasing octokit.gitdataoctokit.git, `octokit.authorizati…
Browse files Browse the repository at this point in the history
…on` → `octokit.oauthAuthorizations`, `octokit.pullRequests` → `octokit.pulls`
  • Loading branch information
gr2m committed Nov 26, 2018
1 parent 05f3f7b commit 0766d51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/rest-api-endpoints/index.js
Expand Up @@ -3,5 +3,11 @@ 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)
}

0 comments on commit 0766d51

Please sign in to comment.