Skip to content

Commit

Permalink
docs: do not list legacy endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Apr 29, 2019
1 parent 5952a88 commit 3d08a49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/plugins/gatsby-source-octokit-routes/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ exports.sourceNodes = async ({ actions }) => {
const methods = []

ROUTES[scope].forEach(endpoint => {
if (/legacy/.test(endpoint.idName)) {
return
}

const endpointId = `octokit-routes-${scope}-${_.kebabCase(endpoint.idName)}`
const paramNames = endpoint.params
.filter(param => param.required)
Expand Down

0 comments on commit 3d08a49

Please sign in to comment.